normit581 / cits3200-proj

2 stars 0 forks source link

deployment #44

Closed Elijah017 closed 2 months ago

Elijah017 commented 3 months ago

Brief

As by the title, I believe we should get a deployment pipeline set up. This would include a docker and/or docker-compose file, and a script that will handle the deployment process to Lightsail or some other chosen cloud host.

Requirements

  1. Containerisation
  2. Windows compatible script
  3. Linux compatible script
  4. Documentation on how to use
github-actions[bot] commented 3 months ago

Branch issue-44-deployment created!

Elijah017 commented 3 months ago

Status

as of commit da9bfc4 the docker container appears to run the app properly.

Note

  1. It should be noted that while the container runs, it seems Gunicorn takes a while to boot up after the container starts. This means it may take between 10 - 30 seconds before the server starts and can receive messages. I am working on a way to block until the server start but I am yet to implement it.
  2. The port that should be targeted in the container is set to port 80 (the default for HTTP) so simply entering http://localhost will suffice to reach the page once server starts.