Skip to content

Instantly share code, notes, and snippets.

@bradvogel
Last active April 8, 2018 01:54
Show Gist options
  • Save bradvogel/637fcd4a27b9ff695c02 to your computer and use it in GitHub Desktop.
Save bradvogel/637fcd4a27b9ff695c02 to your computer and use it in GitHub Desktop.
CodeShip, Modulus, and Meteor 0.9 deploy script
# 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"
@jhgaylor
Copy link

Hmmm. The temp bundle fixed my issue. Strange that I need it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment