Last active
April 8, 2018 01:54
-
-
Save bradvogel/637fcd4a27b9ff695c02 to your computer and use it in GitHub Desktop.
CodeShip, Modulus, and Meteor 0.9 deploy script
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
# 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
Hmmm. The temp bundle fixed my issue. Strange that I need it though.