Last active
January 13, 2016 12:49
-
-
Save arcdev1/0d4f509c44e6a1d0cd37 to your computer and use it in GitHub Desktop.
Deploy to Parse from Codeship
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
# 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 "[email protected]" to your actual email | |
mkdir ${HOME}/.parse | |
printf "machine api.parse.com#[email protected]\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