Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mlocher/d4f8426e389094c0a203 to your computer and use it in GitHub Desktop.
Save mlocher/d4f8426e389094c0a203 to your computer and use it in GitHub Desktop.
#!/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