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

Migrate to Mythic Beasts VPS #522

Closed
24 of 25 tasks
philgyford opened this issue Nov 28, 2022 · 0 comments
Closed
24 of 25 tasks

Migrate to Mythic Beasts VPS #522

philgyford opened this issue Nov 28, 2022 · 0 comments
Assignees

Comments

@philgyford
Copy link
Owner

philgyford commented Nov 28, 2022

  • Research serving the static HTML etc files that Whitenoise currently serves. Can nginx do it? (See my SO question) If so:
  • Remove Whitenoise
  • Add setproctitle for gunicorn
  • Review Redis config in .env and settings.py
    • Add Docker container?
  • Use django-q2
    • Add to requirements
    • Add Docker container
    • Create tasks for all the stuff we do with Heroku Scheduled Tasks at the moment
  • Remove any Heroku-specific stuff like Procfile
  • Check /up/ view
  • Add conf files for nginx, Gunicorn, etc
  • Set up on Sentry
  • Download database dump from Heroku
  • Turn off uptime notifications on Mythic Beasts
  • Work through process for setting up a new app on Sylvan
  • Point www.gyford.com to Sylvan
  • Add django-q2 Tasks
  • Get static_html files working again
  • Change GitHub Action to deploy to Sylvan, not Heroku
  • Turn on uptime notifications on Mythic Beasts
    • Add Gyford.com?
  • Update README
  • Update Mythic Beasts' wiki
  • Delete Heroku app
philgyford added a commit that referenced this issue Dec 1, 2022
philgyford added a commit that referenced this issue Dec 1, 2022
philgyford added a commit that referenced this issue Dec 1, 2022
philgyford added a commit that referenced this issue Dec 1, 2022
* Add django-q2
* Add django-q Docker container
* Add settings to have it use Redis as a broker
* Add tasks that call management commands
* Start updating README

For #522
philgyford added a commit that referenced this issue Dec 1, 2022
@philgyford philgyford self-assigned this Dec 1, 2022
philgyford added a commit that referenced this issue Dec 2, 2022
philgyford added a commit that referenced this issue Dec 2, 2022
philgyford added a commit that referenced this issue Dec 2, 2022
Because when trying to start nginx with oohdir and hines configs in place
we got this error:

```
Dec  2 14:55:49 sylvan systemd[1]: Starting A high performance web server and a reverse proxy server...
Dec  2 14:55:49 sylvan nginx[1653019]: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/oohdir:15
Dec  2 14:55:49 sylvan nginx[1653019]: nginx: configuration file /etc/nginx/nginx.conf test failed
Dec  2 14:55:49 sylvan systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Dec  2 14:55:49 sylvan systemd[1]: nginx.service: Failed with result 'exit-code'.
Dec  2 14:55:49 sylvan systemd[1]: Failed to start A high performance web server and a reverse proxy server.
```

For #522
philgyford pushed a commit that referenced this issue Dec 2, 2022
philgyford pushed a commit that referenced this issue Dec 2, 2022
philgyford pushed a commit that referenced this issue Dec 2, 2022
It works, but requests for a directory like /japanese/
don't serve the index.html inside it.

For #522
philgyford added a commit that referenced this issue Dec 2, 2022
philgyford pushed a commit that referenced this issue Dec 2, 2022
But static html directories like /japanese/ now work

For #522
philgyford pushed a commit that referenced this issue Dec 2, 2022
* Serves static_html files from / , with requests for directories
  serving index.html
* Serves Django's static files from /static/ as before
* Serves Django correctly, including preventing the 403 error at /

For #522
philgyford added a commit that referenced this issue Dec 3, 2022
philgyford pushed a commit that referenced this issue Dec 3, 2022
philgyford added a commit that referenced this issue Dec 3, 2022
philgyford added a commit that referenced this issue Dec 3, 2022
philgyford added a commit that referenced this issue Dec 4, 2022
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

No branches or pull requests

1 participant