Skip to content

xiakunhou/FlaskProject

Repository files navigation

FlaskProject

pip install -r requirements.txt

run from console

//create db..
python db_create.py
//translation..
python tr_compile.py
//start web
//foreman start web
python run.py

run from heroku

create Heroku db

$ heroku addons:add heroku-postgresql:dev
$ heroku pg:promote HEROKU_POSTGRESQL_ORANGE_URL

Then it will create a $DATABASE_URL variable, add it to config.py. Prepare requirements.txt and Procfile and commit to heroku. Then create the db.

$ heroku run init
$ heroku run migrate
$ heroku run upgrade

read below documents.

ref ref

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published