Skip to content

Instantly share code, notes, and snippets.

@gcpantazis
Last active December 27, 2015 12:19
Show Gist options
  • Save gcpantazis/7325120 to your computer and use it in GitHub Desktop.
Save gcpantazis/7325120 to your computer and use it in GitHub Desktop.
Packaging dependencies (NPM/Bower) for CI and Heroku.
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
./restore_dependencies
./node_modules/.bin/grunt server:production:heroku
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