Open dongbohu opened 5 years ago
This is helpful to jot down. Hopefully, in the medium term, we can design a solution that produces the server instance in an entirely scripted way. One solution that comes to mind is for this repository to define a Docker image with its environment. This image could be built / deployed by CI as necessary. @dongbohu interested to hear what you think is the best solution?
For now I can write a shell script to keep track of all deployment steps. Then if we (or users of this repo) need to deploy the backend, all they need to do is run this script on either docker container or cloud instances such as AWS EC2 or Google Cloud etc.
This Django app is called by Nginx, which behaves as a reverse proxy to client requests. Here is the nginx configuration file:
The directory
/home/ubuntu/hetmech-backend/dj_hetmech/static
(which holds static files for API view) should be populated by the following management command:Gunicorn is started at boot time by supervisord, with the following configuration: