Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deployment configurations and ports #819

Merged
merged 6 commits into from
May 13, 2024

Conversation

dchiller
Copy link
Collaborator

@dchiller dchiller commented Jan 25, 2024

With this PR:

  • the CU nginx container now always listens on the server's port 8000 since it is only serving to the edge router
  • the django app's debug settings are now turned on and off with the DEVELOPMENT environment variable rather than the much more opaque PORT variable
  • makemigrations and migrate commands are no longer run automatically at server start-up, since migrations are now committed to version control (introduced in Remove concordance model and related code #809)
  • the README is updated to account for all of these changes

Closes #818.

NOTE: This PR will require a PR to the operations repo to ensure that the edge routers route requests to port 8000.

Uses the DEVELOPMENT environment variable, rather than the PORT
variable, to determine whether to run in development or deployment
mode. Always listen on port 8000, since nginx does not need to serve
over http or https (this is handled by edge routers).
Copy link

@jacobdgm jacobdgm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's one place where something seems to have been overlooked - other than that, this looks good to me!

README.md Outdated Show resolved Hide resolved
@dchiller dchiller merged commit 04600af into DDMAL:main May 13, 2024
2 checks passed
@dchiller dchiller deleted the update-configs-and-readme branch May 13, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change deployment and port configurations
2 participants