Created
May 14, 2015 19:30
-
-
Save alexleventer/f0f80f33667ba31c0799 to your computer and use it in GitHub Desktop.
Python Ubuntu Distelli Manifest
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>/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