Skip to content

Instantly share code, notes, and snippets.

@arcdev1
Last active January 13, 2016 12:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arcdev1/0d4f509c44e6a1d0cd37 to your computer and use it in GitHub Desktop.
Save arcdev1/0d4f509c44e6a1d0cd37 to your computer and use it in GitHub Desktop.
Deploy to Parse from Codeship
# Install the Parse Command Line Tool
export TMP_FILE=/tmp/parse.tmp
export latest=`curl -X GET https://api.parse.com/1/supported?version=latest|grep -Po '(\d.\d.\d)'`
export url="https://github.com/ParsePlatform/parse-cli/releases/download/release_${latest}/parse_linux"
curl --progress-bar --compressed -Lo ${TMP_FILE} ${url}
mv /tmp/parse.tmp ${HOME}/bin/parse
chmod 755 ${HOME}/bin/parse
# Avoid login prompt by using a Parse account key
# Note: Make sure you have created an account key at https://dashboard.parse.com/account/overview
# Note: Make sure you have an environment variable on Codeship PARSE_ACT_KEY = your Parse account key
# Note: Change "your@email.com" to your actual email
mkdir ${HOME}/.parse
printf "machine api.parse.com#your@email.com\n login default\n password ${PARSE_ACT_KEY}\n machine api.parse.com\n login default\n password ${PARSE_ACT_KEY}" > ${HOME}/.parse/netrc
# Deploy to Parse
# Note: you may need to change directories if your .parse.local and .parse.project files are in a subdirectory
parse deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment