Skip to content

Instantly share code, notes, and snippets.

@jsloyer
Last active August 29, 2015 14:09
Show Gist options
  • Save jsloyer/5d68e5c36acaa2e05c0b to your computer and use it in GitHub Desktop.
Save jsloyer/5d68e5c36acaa2e05c0b to your computer and use it in GitHub Desktop.
jazzhub deploy script after
cf set-env "${CF_APP}" TWILIO_PHONENUMBER "replaceme"
cf set-env "${CF_APP}" TWILIO_SID "replaceme"
cf set-env "${CF_APP}" TWILIO_TOKEN "replaceme"
cf set-env "${CF_APP}" TWITTER_ACCESSTOKEN_KEY "replaceme"
cf set-env "${CF_APP}" TWITTER_ACCESSTOKEN_SECRET "replaceme"
cf set-env "${CF_APP}" TWITTER_CONSUMER_KEY "replaceme"
cf set-env "${CF_APP}" TWITTER_CONSUMER_SECRET "replaceme"
cf push "${CF_APP}" -c "node lib/app.js"
# View logs
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]
then
cf logs "${CF_APP}" --recent
exit $EXIT_CODE
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment