From af8db2ef3274a2ae376eb7e5cbf1d135d4acc491 Mon Sep 17 00:00:00 2001 From: Michael Herrmann Date: Wed, 10 Jan 2024 08:39:13 +0100 Subject: [PATCH] Improve VPS instructions --- run/vps/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/run/vps/README.md b/run/vps/README.md index 059fecf..425a29b 100644 --- a/run/vps/README.md +++ b/run/vps/README.md @@ -13,7 +13,7 @@ server, then run `install.sh` as root. export DEBUG=False # The domain under which this server runs: -export HOST_NAME=some.domain.com +export HOST_NAME=your.domain.com export DJANGO_SECRET_KEY=atLeast50RandomChars @@ -24,10 +24,19 @@ export GIT_SERVER=github.com export ADMIN_EMAIL=email@gmail.com ``` +After you have run the install script for the first time, you then also need to +create a superuser for logging in: + +```bash +su -c '/srv/manage.py createsuperuser' - django +``` + +Now you can log in at `https://your.domain.com/admin/`. + ## Optional settings You can add additional lines to `.bashrc` to customize the server setup. This -needs to be done when you set up the server. (It cannot be done later.) +needs to be done when you set up the server. It cannot be done later. ### Multiple domains