Skip to content

santiagourregobotero/log_management_backend

Repository files navigation

Logs Sports

Run App Locally

  1. Start the docker DB container
docker compose -f db.compose.yml up --build
  1. Start the backend
python manage.py runserver

Run App in Production

  1. Make sure that there a file called .env.prod in the root directory of the project that contains the environment variables for the production environment, here is an example of the file:
# DB container envs
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=DB
POSTGRES_PASSWORD='xxx'
POSTGRES_NAME=logs_db

# django container envs
DJANGO_ENV=production
DEBUG=True
SECRET_KEY='xxx'
  1. Start docker compose
docker compose up --build

Redeploy App in Production

  1. Navigate to the root directory of the project
cd /var/www/logs-sports
  1. Stop the docker compose
docker compose down
  1. Pull the latest changes from the repository
git pull
  1. Start docker compose
docker compose up --build -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published