Test api ui on dev
At the time this doc is written, current API version is v22. You'll have to adapt to current API version.
Quick tour
Useful paths:
- json-data:
/home/gitlab-runner/json-data
API entry point
https://api.dev.db.nomics.world/v22/apidocs
Update API source code
Update API code
ssh ioke
cd /home/cepremap/dbnomics-api-v22/dbnomics-api
git [whatever]
Reload API server
API is served via UWSGI. To reload:
systemctl restart uwsgi.service
Access logs
tail -f /var/log/uwsgi/app/dbnomics-api-uwsgi-v22.log
tail -f /var/log/nginx/api.dev.nomics.world-error.log
Common errors
- Failed to establish a new connection: [Errno 111] Connection refused
- Why ?: Solr have been killed by kernel
- Quick fix:
systemctl restart solr