Project

General

Profile

Entorno de Desarrollo

Gossip

IP, User, Password
[Edit to see values]

Dependencies

sudo apt-get install python-virtualenv, mysql, mysql-server, libmysqlclient-dev 

Database (Gossip)

Mysql
[Edit to see values]

CREATE DATABASE apiserver_database;
CREATE USER 'pdatabase'@'localhost' IDENTIFIED BY 'pdatabase';
GRANT ALL PRIVILEGES ON apiserver_database.* TO 'pdatabase'@'localhost';
FLUSH PRIVILEGES;
exit;

Webapp Installation

Virtualenv

mkdir ~/virtuals/
cd ~/virtuals
virtualenv apiserver
source apiserver/bin/activate

Webapp

mkdir ~/public_html/
cd ~/public_html
svn checkout http://jro-dev.igp.gob.pe/svn/jro_soft/apidb_server/branches/django1_10/apidbserver_team/ apiserver
cd apiserver
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
sh load_initial_data.sh
deactivate

Update apidatabase_dev/settings.py and config.xml
Create ssh password less conection with puma ssh-keys

Puma

IP, User, Password
[Edit to see values]

Dependencies

sudo apt-get install python-virtualenv

Webapp Installation

Virtualenv

mkdir ~/virtuals/
cd ~/virtuals
virtualenv webappRaid

Webapp

cd ~/
svn checkout http://jro-dev.igp.gob.pe/svn/jro_soft/apidb_server/trunk/webappRaid/
cd webappRaid
pip install -r requirements.txt
screen
source ~/virtuals/webappRaid/bin/activate
python manage.py runserver 0.0.0.0:8081
CTRL + A +D