Added Procfile

This commit is contained in:
Ceferino Patino 2022-08-29 12:03:42 -05:00
commit 8bdc94be04
4 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,4 @@
from pathlib import Path
import os
from django.contrib.messages import constants
from dotenv import dotenv_values

1
Procfile Normal file
View file

@ -0,0 +1 @@
web: gunicorn django_project.wsgi

View file

@ -16,6 +16,9 @@ services:
DJANGO_SETTINGS_MODULE: "CollegiateHouseWars.settings.dev"
depends_on:
- mysqldb
command: >
bash -c "python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000"
mysqldb:
restart: unless-stopped
image: mysql:5.7
@ -27,6 +30,8 @@ services:
- housewars
environment:
MYSQL_ROOT_PASSWORD: "${DATABASE_PASSWORD}"
MYSQL_USER: "c4pat"
MYSQL_PASSWORD: "asdf"
MYSQL_DATABASE: dev
volumes:
housewars-mysql:

Binary file not shown.