This commit is contained in:
Trey t
2023-06-26 13:14:47 -05:00
parent a3a6f0cb86
commit 12f9a73def
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ echo cat ~/.ssh/authorized_keys | dokku ssh-keys:add admin
echo '<authorized_keys contents here>' | dokku ssh-keys:add admin
# server ip
dokku domains:set-global ###c_name
dokku domains:set-global 45.79.34.63###c_name
sudo dokku apps:create werkout
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git

View File

@@ -141,7 +141,7 @@ if os.environ.get("DATABASE_URL"):
# }
CSRF_TRUSTED_ORIGINS = ['https://*.werkout.fitness']
SECRET_KEY = os.environ.get("SECRET_KEY", 'secret')
SECRET_KEY = o.environ.get("SECRET_KEY", 'secret')
# Parse the DATABASE_URL env var.
USER, PASSWORD, HOST, PORT, NAME = re.match("^postgres://(?P<username>.*?)\:(?P<password>.*?)\@(?P<host>.*?)\:(?P<port>\d+)\/(?P<db>.*?)$", os.environ.get("DATABASE_URL", "")).groups()