From 985e536dca61c808c7917985d0b86d5df6453d8f Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Sat, 1 Jan 2022 23:12:10 +0100 Subject: [PATCH] Add installing guide to the readme --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6aa0d21..a0bd23d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,33 @@ Currently there is no documentation :-/ Installing --- -TODO :-/ + +1. Pull the repository to preferred location (`git clone + https://gitea.ledoian.cz/LEdoian/Wish.git ` should be sufficient). +2. Optionally create a virtualenv (the deployment script and example + configuration expect it in `venv` directory at repo root). +3. Install the requirements +4. Tweak and deploy the settings: + - Instance configuration template is in `conf/deploycfg.py` and should be + placed in `$XDG_CONFIG_DIR/wish/deploycfg.py` (or + `~/.config/wish/deploycfg.py` if `$XDG_CONFIG_DIR` is not set). Tweak to + your needs according to [Django + documentation](https://docs.djangoproject.com/en/4.0/ref/settings/). + - Configure a web reverse proxy and WSGI server to your liking. The `conf` + directory contains example configuration files for uWSGI, nginx and + systemd. +5. Verify the configuration using `./manage.py check --deploy`. If there are + relevant errors, tweak the configuration more. +6. If everything seems OK, start the systemd service and try reaching the site. + +You will likely need to reference documentation of Django, uWSGI (or other WSGI +server implementation), web reverse proxy of your liking and your service manager. + +If you deploy using git, have a virtualenv in `./venv/` and use systemd to run +the service, you can try to use the provided script `./deploy.sh` for +subsequent deploys. Keep in mind, however, that it is written so it WorksForMeâ„¢ +and I do not guarantee that it will work for you. But I might be able to help +you and/or am open to changes, so feel free to send me questions and/or patches. Licence ---