Skip to content

Instantly share code, notes, and snippets.

@mwawrusch
Created August 21, 2013 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwawrusch/6296271 to your computer and use it in GitHub Desktop.
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
#!/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