Skip to content

Instantly share code, notes, and snippets.

@gcpantazis
Last active December 27, 2015 12:19
Show Gist options
  • Select an option

  • Save gcpantazis/7325120 to your computer and use it in GitHub Desktop.

Select an option

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 [email protected]:/usr/share/www/ci-support
rm modules.tar.gz
./restore_dependencies
./node_modules/.bin/grunt server:production:heroku
curl http://uesrname:[email protected]/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