Create .env file from example:
cp .env.example .env.devReplace with the following example info:
POSTGRES_USER=postgres
POSTGRES_PASSWORD=supersecretpassword
DB_HOST=db
DB_NAME=app
DB_USER=postgres
DB_PASS=supersecretpassword
DB_PORT=5432
DJANGO_SUPERUSER_USERNAME=admin
[email protected]
DJANGO_SUPERUSER_PASSWORD=admin
DJANGO_SETTINGS_MODULE=app.settings
LEAGUE_ID=454.l.43895
ALLOWED_HOSTS='["localhost"]'
CORS_ORIGIN_WHITELIST=http://localhost:3000
DEBUG=True
SECRET_KEY=django-insecure-74ek#$su&p=oz$_al^9pz7q#olw4_vo6s70$jgwb_@cl_=hw2m
SITE_URL='localhost'bash ./scripts/install_requirements.shEnsure your .env.dev file has the necessary variables, then start the database container:
docker-compose up -d dbRun the database initialization script:
docker exec waiver-wizard-db-1 bash /scripts/init_database.shVerify the database was created:
docker exec -it waiver-wizard-db-1 psql -U postgresTo exit:
\qCreate .env file from example:
cp .env.example .env.prodReplace example variables with required information.
bash ./scripts/install_requirements.shEnsure your .env.prod file has the necessary variables, then start the database container:
docker-compose up -d dbRun the database initialization script:
docker exec waiver-wizard-db-1 bash /scripts/init_database.shRun production deployment script:
bash ./scripts/deploy_to_production.sh