Last active
December 27, 2015 12:19
-
-
Save gcpantazis/7325120 to your computer and use it in GitHub Desktop.
Packaging dependencies (NPM/Bower) for CI and Heroku.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -cz -f modules.tar.gz node_modules/ bower_components/ | |
scp modules.tar.gz username@www.myserver.com:/usr/share/www/ci-support | |
rm modules.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./restore_dependencies | |
./node_modules/.bin/grunt server:production:heroku |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://uesrname:password@www.myserver.com/ci-support/modules.tar.gz -o modules.tar.gz | |
tar xvfz modules.tar.gz | |
npm rebuild | |
rm modules.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment