Skip to content

Instantly share code, notes, and snippets.

@josecolella
Created January 11, 2014 18:08
Show Gist options
  • Save josecolella/8374477 to your computer and use it in GitHub Desktop.
Save josecolella/8374477 to your computer and use it in GitHub Desktop.
Automating deployment of Web.py Python Application on a Server
#!/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