Skip to content

jroiseux/Chordy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Do this for dev

# Only do this if the Dockerfile changes
docker build -t flask-dev -f Dockerfile.dev .

# Start the app
docker-compose -f docker-compose.dev.yaml up -d

# Get terminal in flask container
docker exec -it chordytwo_flask_1 bash

# Init DB
flask db init
flask db migrate
flask db upgrade

# Import data
mysql -f -h mysql -u myuser -ppassword < init.sql

# Run webserver
flask run -h 0.0.0.0

Do this to run

# Only do this if the Dockerfile changes
docker build -t flask .

# Start the app
docker-compose up -d

Do this to wipe the db

rm -rf .mysql_data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 45.5%
  • HTML 30.3%
  • JavaScript 16.1%
  • CSS 6.4%
  • Dockerfile 1.7%