Created
August 21, 2013 15:51
-
-
Save mwawrusch/6296271 to your computer and use it in GitHub Desktop.
circleci script for nodejitsu This assumes that you include jitsu within the dev section of your npm, store this script in ./bin, and also include a .jitsuconf in bin
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/bash | |
BASEDIR=$(dirname $0) | |
pushd $(dirname $0) | |
JITSUCONF=`pwd` | |
JITSUCONF=$JITSUCONF/.jitsuconf | |
popd | |
echo $BASEDIR | |
echo $JITSUCONF | |
pushd $BASEDIR/.. | |
./node_modules/.bin/jitsu deploy -j $JITSUCONF --confirm | |
rc=$? | |
if [[ $rc != 0 ]] ; then | |
exit $rc | |
fi | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment