Skip to content

Commit

Permalink
aded
Browse files Browse the repository at this point in the history
  • Loading branch information
walosha committed May 4, 2023
1 parent cb4ef79 commit eee4df1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ RUN pip install --upgrade pip

COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY ./entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

COPY . /code/

ENTRYPOINT [ "/entrypoint.sh" ]

6 changes: 4 additions & 2 deletions church/core/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@
"ENGINE": "django.db.backends.postgresql",
"NAME": "postgres",
"USER": "postgres",
"PASSWORD": "password",
"HOST": "pg1,", # set in docker-compose.yml
"PASSWORD": "Olajuwon1@?",
"HOST": "db.ixtifnmuigogotznilwt.supabase.co", # set in docker-compose.yml
"PORT": 5432, # default postgres port
'OPTIONS': {'sslmode': 'require'},

}
}

Expand Down
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@



docker-compose exec web python /code/church/manage.py migrate
docker-compose exec web python /code/church/manage.py collectstatic

0 comments on commit eee4df1

Please sign in to comment.