Skip to content

Instantly share code, notes, and snippets.

@kayibal
Last active August 7, 2017 12:00
Show Gist options
  • Save kayibal/c0c7a2a156f6a70abd6196500d26516c to your computer and use it in GitHub Desktop.
Save kayibal/c0c7a2a156f6a70abd6196500d26516c to your computer and use it in GitHub Desktop.
# export PROJECT=is24_user_scoring
# export PROD_SETTINGS=is24.settings.production
# export VERSION=v2.0.1
sleep 5m
cd /home/ec2-user
sudo pip install awscli
if [ ! -d "$PROJECT" ]; then
git clone git@github.com:datarevenue-berlin/$PROJECT.git
ln -s $PROJECT bin;
fi
cd $PROJECT
git fetch --tags
git checkout $VERSION
bash run_scoring.sh
exit $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment