Merge branch 'main' of ssh://gitea.caret.be:2223/jens/im into main
This commit is contained in:
commit
3c6ea2de37
|
@ -43,7 +43,8 @@ Now you are running the development server, Visit http://127.0.0.1:8000/admin/
|
|||
```
|
||||
dnf install python3-pip git
|
||||
pip3 install django psycopg2 gunicorn
|
||||
git clone git@github.com:JensTimmerman/im.git
|
||||
curl https://gitea.caret.be/jens/im/archive/main.tar.gz --output im-latest.tar.gz
|
||||
tar -xvf im-latest.tar.gz
|
||||
cd im
|
||||
vim im/settings.py
|
||||
```
|
||||
|
|
|
@ -20,13 +20,13 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = '{{secret_key}}'
|
||||
SECRET_KEY = '{{im_secret_key}}'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
{{domain}}
|
||||
{{im_domain}}
|
||||
]
|
||||
|
||||
|
||||
|
@ -79,11 +79,11 @@ WSGI_APPLICATION = 'im.wsgi.application'
|
|||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': '{{db_name}}',
|
||||
'USER': '{{db_user}}',
|
||||
'PASSWORD': '{{db_password}}',
|
||||
'HOST': '{{db_server_ip}}',
|
||||
'PORT': '{{db_port}}',
|
||||
'NAME': '{{im_db_name}}',
|
||||
'USER': '{{im_db_user}}',
|
||||
'PASSWORD': '{{im_db_password}}',
|
||||
'HOST': '{{im_db_server_ip}}',
|
||||
'PORT': '{{im_db_port}}',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue