No description
| art | ||
| auth | ||
| binary_dependencies | ||
| buildserver | ||
| certs | ||
| data | ||
| endpoints | ||
| screenshots | ||
| static | ||
| storage | ||
| templates | ||
| test | ||
| tools | ||
| util | ||
| workers | ||
| .gitignore | ||
| app.py | ||
| application.py | ||
| config.py | ||
| gunicorn_config.py | ||
| initdb.py | ||
| nginx-staging.conf | ||
| nginx.conf | ||
| README.md | ||
| requirements-nover.txt | ||
| requirements.txt | ||
to prepare a new host:
sudo apt-get update
sudo apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core
check out the code:
git clone https://bitbucket.org/yackob03/quay.git
cd quay
virtualenv --distribute venv
source venv/bin/activate
pip install -r requirements.txt
sudo gdebi --n binary_dependencies/*.deb
running:
sudo mkdir -p /mnt/nginx/ && sudo /usr/local/nginx/sbin/nginx -c `pwd`/nginx.conf
STACK=prod gunicorn -c gunicorn_config.py application:application
start the workers:
STACK=prod python -m workers.diffsworker -D
STACK=prod python -m workers.dockerfilebuild -D
STACK=prod python -m workers.webhookworker -D
bouncing the servers:
sudo kill -HUP <pid of nginx>
kill -HUP <pid of gunicorn>
kill <pids of worker daemons>
restart daemons
running the tests:
STACK=test python -m unittest discover
generating screenshots:
cd screenshots
casperjs screenshots.js --d