Skip to content

Instantly share code, notes, and snippets.

@mlocher
Forked from bradvogel/deploy_production.sh
Last active August 29, 2015 14:06
Show Gist options
  • Save mlocher/72b8a72dea976f2fe844 to your computer and use it in GitHub Desktop.
Save mlocher/72b8a72dea976f2fe844 to your computer and use it in GitHub Desktop.
Deploy via Meteor
# This script is used to deploy a Meteor 0.9 project to Modulus.io hosting using CodeShip.
# Install Meteor.
curl https://install.meteor.com > ./install_meteor
sed -i'' -e 's/PREFIX=.*/PREFIX="$HOME"/g' ./install_meteor
chmod u+x ./install_meteor
./install_meteor
# Install Modulus.
npm install -g modulus
# Bundle the app first to allow Meteor to update all its core files and deps. Basically,
# the Meteor install script does not have the correct permissions to fully initialize Meteor
# itself, so bundling finishes this process.
meteor bundle temp.tar.gz
rm temp.tar.gz
# Upload the app.
export MODULUS_TOKEN="$1"
modulus deploy -p "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment