2016-09-07 15:20:13 +00:00
|
|
|
# oxdata
|
|
|
|
|
|
|
|
django based api server
|
|
|
|
|
|
|
|
## setup
|
|
|
|
|
2024-09-18 13:24:01 +00:00
|
|
|
apt-get install git ipython3 python3-venv
|
2016-09-07 15:20:13 +00:00
|
|
|
|
|
|
|
apt-get install python3-pil python3-psycopg2 \
|
2024-09-18 13:24:01 +00:00
|
|
|
python3-lxml python3-requests python3-six python3-anyjson
|
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
|
2024-09-18 13:24:01 +00:00
|
|
|
python3 -m venv --system-site-packages venv
|
|
|
|
./venv/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
|
|
|
|
|