Created
January 11, 2014 18:08
-
-
Save josecolella/8374477 to your computer and use it in GitHub Desktop.
Automating deployment of Web.py Python Application on a Server
This file contains 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
#!/bin/bash | |
# Author: Jose Miguel Colella | |
# Description: Script creado para automatizar el proceso | |
# de instalar todo | |
cd ../ | |
sudo apt-get update | |
sudo apt-get install -y language-pack-en | |
sudo apt-get install -y build-essential | |
sudo apt-get install -y python-dev | |
sudo apt-get install -y python-setuptools | |
# Instalar web.py | |
sudo easy_install web.py | |
#Instalar lenguaje de templating | |
sudo easy_install mako | |
#Instalar driver para mongodb-server | |
sudo easy_install pymongo | |
#Instalar interfaz de twitter | |
sudo easy_install tweepy | |
# Instalar el feedparser | |
sudo easy_install feedparser | |
git clone https://github.com/josecolella/DAI_Practica4.git | |
cd DAI_Practica4 | |
chmod +x index.py | |
# Para que el script siga ejecutando despues de que salga de ssh | |
sudo nohup ./index.py 80 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment