From cb4ef7901dcff67b1c515f892599099b73f3ad0f Mon Sep 17 00:00:00 2001 From: olawale afuye Date: Sat, 11 Feb 2023 01:19:40 +0100 Subject: [PATCH] added ip address --- config/nginx/default.conf.template | 6 ++---- readme.md | 11 +++++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/config/nginx/default.conf.template b/config/nginx/default.conf.template index c912ab4..eaffadf 100644 --- a/config/nginx/default.conf.template +++ b/config/nginx/default.conf.template @@ -11,8 +11,7 @@ upstream daphne { server { listen 80; - # server_name www.church.com church.com; - server_name localhost; + server_name 157.230.16.234; return 301 https://$host$request_uri; } @@ -21,8 +20,7 @@ server { listen 443 ssl; ssl_certificate /code/church/ssl/church.crt; ssl_certificate_key /code/church/ssl/church.key; - # server_name www.church.com church.com; - server_name localhost; + server_name 157.230.16.234; error_log stderr warn; access_log /dev/stdout main; diff --git a/readme.md b/readme.md index 03e8bb0..2daeef8 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ ` - Clone this repository -- docker compose --build && docker compose up +- docker-compose --build && docker compose up - source ./venv/bin/activate - pip install -r requirements.txt - python manage.py makemigrations @@ -15,11 +15,10 @@ @@ Access swagger documentation on : api/doc/#/ ` -docker compose exec web python /code/church/manage.py migrate -docker compose exec web python /code/church/manage.py collectstatic +docker-compose exec web python /code/church/manage.py migrate +docker-compose exec web python /code/church/manage.py collectstatic or -python manage.py collectstatic --settings=church.settings.local - +python manage.py collectstatic --settings=core.settings.local python manage.py check --settings=core.settings.prod (church directory) python manage.py check --deploy --settings=church.settings.prod ( check for deploy issues) @@ -32,7 +31,7 @@ openssl req -x509 -newkey rsa:2048 -sha256 -days 3650 -nodes \ -addext 'subjectAltName=DNS:_.church.com' //reload NGNIX -docker compose exec nginx nginx -s reload +docker-compose exec nginx nginx -s reload `