I am trying to use Heroku to upload my django project . When I run git push heroku master, all goes well except that in the command line I get this error: "Procfile declares types -> web". My Procfile is in my root directory, together with manage.py and requirements.txt.
Procfile:
web: gunicorn my_app.wsgi --log-file -
Heroku activity log:
-----> Python app detected
-----> Uninstalling stale dependencies
Uninstalling PyMySQL-0.9.2:
Successfully uninstalled PyMySQL-0.9.2
-----> Installing requirements with pip
-----> $ python manage.py collectstatic --noinput
152 static files copied to '/tmp/build_/staticfiles'.
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 57.9M
-----> Launching...
Released v17
https://my_appapp.herokuapp.com/ deployed to Heroku
I am using windows 10.
NB: I can view the app admin login page and run migrations BUT none of them are migrated because i'm unable to createsuperuser (because of error: django.db.utils.OperationalError: no such table: auth_user) and when running heroku run python manage.py migrate again,, it applies the migrations as if it was the first time it did that but it wasn't. Maybe its because of the above error.
I am trying to use Heroku to upload my django project . When I run git push heroku master, all goes well except that in the command line I get this error: "Procfile declares types -> web". My Procfile is in my root directory, together with manage.py and requirements.txt.
Procfile: web: gunicorn my_app.wsgi --log-file -
Heroku activity log: -----> Python app detected -----> Uninstalling stale dependencies Uninstalling PyMySQL-0.9.2: Successfully uninstalled PyMySQL-0.9.2 -----> Installing requirements with pip -----> $ python manage.py collectstatic --noinput 152 static files copied to '/tmp/build_/staticfiles'.
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 57.9M
-----> Launching...
Released v17
https://my_appapp.herokuapp.com/ deployed to Heroku
I am using windows 10.
NB: I can view the app admin login page and run migrations BUT none of them are migrated because i'm unable to createsuperuser (because of error: django.db.utils.OperationalError: no such table: auth_user) and when running heroku run python manage.py migrate again,, it applies the migrations as if it was the first time it did that but it wasn't. Maybe its because of the above error.
I am a learner so please bear with me. Thank you