- install nginx, redis
- clone frontend and backend repo to /var/www
- copy
apifile to/etc/nginx/sites-avaliable ln -s /etc/nginx/sites-avaliable/api /etc/nginx/sites-enabled/apirm /etc/nginx/sites-enabled/defaultservice nginx start(or restart)- cd repo dir & run setup.sh in repo, which will create apienv first and install needed package (please add to package list if some package missing)
source apienv/bin/activategunicorn --workers 3 --bind unix:/tmp/api.sock -m 007 wsgi:app- for sake of privilige,
chmod 777 /tmp/api.sock(DO NOT EXECUTE IN PRODUCTION ENVIRONMENT) - start celery server with
celery -A pool worker -c 12 - browse page at localhost
-
Notifications
You must be signed in to change notification settings - Fork 0
USTCSoftware2021/backend
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
This is a repository for USTCSoftware2021 Backend
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published