Code Monkey home page Code Monkey logo

financial_management's Introduction

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]

financial_management's People

Contributors

pnadolny13 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.