docker-compose.yml
: yml file for developmentdocker-compose-initdb.yml
: yml file for development (start from xxx.sql.gz dump file)production.yml
yml file for for productionMakefile
for command shortcuts
folder: frontend-search
$ cd frontend-search
Setting Environment
.env
for local development
.env.prod
for production build
local development setting:
MY_ENV=dev
API_URL=http://127.0.0.1:8000/api/
Install packages
$ yarn install
Run for development
$ yarn start
- DeploymentJournal: 相機行程
- DeploymentStat: 相機位置工作時數
script/import-deployment-stat.py
計算/匯入工作時數
Scripts:
- Nginx config: nginx-django.conf
- Docker config: production.yml
- Initialize let's encrypt: init-letsencrypt.sh
NOTES:
- Open port 443 on EC2
- Link nginx to django in docker config otherwise nginx cannot find correct upstream
- Make sure to check if data path & docker-compose yml filename in
init-letsencrypt.sh
are correct - When developinglocally by docker, https (provided by nginx) will not be available, so login through ORCID will fail.
gunicorn should add --limit-request-line 8190
, otherwise the search page download api may cause verbose querystring too long error