Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mainroach
Created May 4, 2017 14:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mainroach/7b9209d1ffe30e7063c00001ebb24571 to your computer and use it in GitHub Desktop.
Save mainroach/7b9209d1ffe30e7063c00001ebb24571 to your computer and use it in GitHub Desktop.
apt-get update
# Install tornado (and pip, which is needed)
apt-get install -y python-pip
pip install tornado
pip install futures
# Grab our specific scripts for the Service
sudo mkdir "/home/myservice/scripts/"
gsutil cp "gs://xxxxxxxxxxxxxx/myservice/service.py" "/home/myservice/scripts/service.py"
# install Image Magic, needed for this build
apt-get install -y imagemagick -y
# startup the service
sudo nohup python "/home/myservice/scripts/service.py" &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment