Skip to content

Django App for tracking spending and making it editable using DataTable

Notifications You must be signed in to change notification settings

pnadolny13/financial_management

Repository files navigation

Financial Management - Spend Tracker App

  • To start the Docker containers - The current code is mounted to the container so the current code overwrites the code that was copied in when we built the image:
  • docker-compose -f docker-compose.yml up -d --build

  • docker-compose -f docker-compose.yml exec web python manage.py migrate --noinput

  • docker-compose -f docker-compose.yml down -v

In Prod:

Note: the .env.prod files need to be populated with prod credentials and database before startup (these files are in the git ignore so that prod creds dont go on github)
  • docker-compose -f docker-compose.prod.yml up -d --build
  • docker-compose -f docker-compose.prod.yml exec web python manage.py migrate --noinput
  • docker-compose -f docker-compose.prod.yml down -v

Deployment:

This builds the prod docker images, packages them as tar files, pushes to the server, unpacks the tar files, pushes compose and env.prod files, then executes docker-compose up on the server.
  • make deploy HOST=[EC2_PUBLIC_IP]

Turn on RDS Instance, add user/pass/host to .env.prod file, run migration Turn on EC2 instance, install docker and docker-compose Run deploy make command with ip address parameter

Server Init:

This initializes a new server with docker and docker-compose so the deployment script will succeed.
  • make init_server HOST=[EC2_PUBLIC_IP]

About

Django App for tracking spending and making it editable using DataTable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published