juanjoms / patrones

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Patrones

A python app for evaluating the optimal route to the implementation of sofware process improvement.

##Running in a local server

Make sure you have Python installed properly.

Optionaly you can use virtualenv to have insolated python instalations

$ git clone git@github.com:juanjo23/patrones.git
$ cd patrones
$ pip install -r requirements.txt

Install a mysql database, and then create the database patrones:

create database patrones;
use patrones;

In the MySQL console run the sentences of the file 'patrones.sql'

Sincroniza la base de datos:

$ python manage.py syncdb

If some tables not synced (use migrations):

python manage.py migrate

Now you can run the server with command:

python manage.py runserver

Open in your browser the page 127.0.0.1:8000

Your app should now be running on localhost:8000.

##Requeriments for production

Operating System:

  • Distro Linux (such Debian or Ubuntu)

Web Sever:

  • NGINX

Programming Language:

  • Python 2.7.x

Database:

  • Mysql Server
  • Controlador mysql-python

Virtual enviroment:

  • virtualenv

Framework:

  • Django 1.6
  • Modulos django (requeriments.txt)

Python WSGI HTTP Server:

  • Gunicorn (install from pip)

Hacer deploy de la app para producción:

NOTA: La guía que utilicé para poner al app en producción es: How to install and configure django, con los siguientes cambios:

  1. Cambiar la versión de django por la 1.6
  2. Utilizar mysql en lugar de postgresql
  3. En lugar de crear un nuevo proyecto clonar este repositorio
  4. Al configurar nginx cambiar la ubicación de static: alias /opt/myenv/static/; en mi caso por /opt/myenv/patrones/static/;

About


Languages

Language:JavaScript 54.9%Language:HTML 33.7%Language:CSS 8.4%Language:PHP 1.4%Language:Python 0.7%Language:CoffeeScript 0.6%Language:ActionScript 0.1%Language:Shell 0.1%Language:Go 0.0%Language:ApacheConf 0.0%Language:Makefile 0.0%