Forked from jhgaylor/codeship_modulus_meteor_deploy.sh
Created
August 8, 2014 09:32
-
-
Save mlocher/d4f8426e389094c0a203 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# assumes a clean install on a fresh linux box. | |
# for use w/ codeship.io | |
set -e | |
set -u | |
# a reference to the cloned repository's path | |
PWD=`pwd` | |
METEOR_APP_PATH="$PWD/MeteorApp" | |
MODULUS_PROJECT_NAME=_YOUR_PROJECT_NAME_ | |
MODULUS_TOKEN=_YOUR_API_TOKEN_ | |
### Install Meteor & Meteorite | |
# https://gist.github.com/mlocher/1f872bd9842a5c7ad136 | |
curl https://install.meteor.com > ./install_meteor | |
# modify the install script to | |
sed -i'' -e 's/PREFIX=.*/PREFIX="$HOME"/g' ./install_meteor | |
chmod u+x ./install_meteor | |
./install_meteor | |
# add meteor to the path | |
export PATH=$PATH:"$HOME/.meteor" | |
# install meteorite | |
npm install -g meteorite | |
### Meteor finished installing | |
### Deply to modulus | |
npm install -g modulus | |
export MODULUS_TOKEN=$MODULUS_TOKEN | |
cd $METEOR_APP_PATH | |
modulus deploy -p $MODULUS_PROJECT_NAME | |
### Deploy to modulus finished | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment