2016-09-07 15:20:13 +00:00
|
|
|
# oxdata
|
|
|
|
|
|
|
|
django based api server
|
|
|
|
|
|
|
|
## setup
|
|
|
|
|
|
|
|
apt-get install virtualenv git ipython3
|
|
|
|
|
|
|
|
apt-get install python3-pil python3-psycopg2 \
|
|
|
|
python3-lxml python3-requests python3-six
|
2009-10-09 15:20:54 +00:00
|
|
|
|
2015-11-15 16:33:15 +00:00
|
|
|
git clone https://git.0x2620.org/oxdata.git
|
2009-10-09 15:20:54 +00:00
|
|
|
cd oxdata
|
2016-09-07 15:20:13 +00:00
|
|
|
virtualenv -p /usr/bin/python3 --system-site-packages .
|
2013-02-28 10:00:07 +00:00
|
|
|
./bin/pip install -r requirements.txt
|
2009-10-09 15:20:54 +00:00
|
|
|
|
|
|
|
|
2016-09-07 15:22:21 +00:00
|
|
|
Install rabbitmq and carrot:
|
2010-08-08 12:39:37 +00:00
|
|
|
sudo apt-get install rabbitmq-server
|
2015-11-15 16:33:15 +00:00
|
|
|
|
2010-08-08 12:39:37 +00:00
|
|
|
sudo rabbitmqctl add_user oxdata ox
|
|
|
|
sudo rabbitmqctl add_vhost /oxdata
|
|
|
|
sudo rabbitmqctl set_permissions -p /oxdata oxdata ".*" ".*" ".*"
|
|
|
|
|
|
|
|
|
2016-09-07 15:22:21 +00:00
|
|
|
## deploy:
|
2010-09-17 17:26:47 +00:00
|
|
|
adduser --disabled-password --disabled-login --home /srv/oxdata/ oxdata
|
|
|
|
|
2016-09-07 15:22:21 +00:00
|
|
|
|