-
-
Save mlocher/72b8a72dea976f2fe844 to your computer and use it in GitHub Desktop.
Deploy via Meteor
This file contains hidden or 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