Closed a3vilc0de closed 3 years ago
Hi Ppblibo, you can follow this blog if you want to deploy in heruko: https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xviii-deployment-on-heroku
Hello,I read the link you posted and learned a lot, but when I was deploying with ubuntu, the following error was prompted when I executed flask db upgrade.
[2021-02-16 02:41:19,006] INFO in init: Microblog startup INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Running upgrade 3a5a5514500a -> 149feea4a7a8, empty message Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1249, in _execute_context cursor, statement, parameters, context File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 580, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: table user already exists
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/venv/bin/flask", line 11, in
] (Background on this error at: http://sqlalche.me/e/e3q8)
Hello, is there a more detailed deployment method? I don't know much about database configuration.