Last active
August 29, 2015 14:21
-
-
Save alexleventer/198e4c87770bb1d7319d to your computer and use it in GitHub Desktop.
Python Ubuntu Distelli Manifest Provision
This file contains hidden or 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
<username>/PythonUbuntuPSimpleApp: | |
# 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