Skip to content

Instantly share code, notes, and snippets.

@alexleventer
Created May 14, 2015 19:30
Show Gist options
  • Save alexleventer/f0f80f33667ba31c0799 to your computer and use it in GitHub Desktop.
Save alexleventer/f0f80f33667ba31c0799 to your computer and use it in GitHub Desktop.
Python Ubuntu Distelli Manifest
<username>/PythonUbuntuSimpleApp:
# This Basic Distelli Manifest assumes the following
# has been provisioned on the destination deploy server:
#
# OS: Ubuntu
# Installed Packages:
# Python >= 2.5 [sudo apt-get update]
# [sudo apt-get install python]
# Pip >= 1.4 (python-pip) [sudo apt-get install python-pip]
# virtualenv >= 1.9 [sudo apt-get install python-virtualenv]
#
Env:
- PORT: 8005
PkgInclude:
- simpleapp/simpleapp.py
- requirements.txt
PreInstall:
- echo "Starting PreInstall for SimplePythonApp"
PostInstall:
- echo "Starting PostInstall for SimplePythonApp"
- virtualenv .
- sudo pip install -r requirements.txt
Exec:
- echo "Executing SimplePythonApp"
- exec python simpleapp/simpleapp.py -p $PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment