Skip to content

Arseni1919/Deploy_flask_with_DB_to_Heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask with DB deployed to Heroku

Name of the app: flask-db-heroku-project

Website: https://flask-db-heroku-project.herokuapp.com/

Inside python of Heroku project

$ heroku run python

Inside DB

$ heroku pg:psql --app <name of the app>
select * from <table name>;

Pitfalls & Tricks

$ \c database_name

Then, this shows all tables in the current schema:

$ \dt
  • How I solved issue with:
$ INFO  [alembic.env] No changes in schema detected.

I created another project connected to the same DB. Then, I copied some files of versions... and that's it. It worked after that in the current project. I do not know exactly what was a problem.

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published