@fantom_ask

Ошибка загрузки проекта на heroku. Что не так?

добавил файлы
Procfile
web: gunicorn myfist.wsgi --log-file -
runtime.txt
python-3.7.6
.gitignore
__pycache__/
*pyc
db.sqlite3

reqirements.txt
dj-database-url==0.5.0
Django==3.0.3
djangorestframework==3.11.0
gunicorn==20.0.4
oauthlib==3.1.0
PyJWT==1.7.1
requests==2.23.0
requests-oauthlib==1.3.0
six==1.14.0
whitenoise==5.2.0
wrapt==1.12.0
psycopg2==2.6.2

Я закомментировал свой проект и отправил по
git push heroku master
Но я получаю ошибку

Enumerating objects: 45, done.
Counting objects: 100% (45/45), done.
Delta compression using up to 8 threads
Compressing objects: 100% (37/37), done.
Writing objects: 100% (45/45), 13.70 KiB | 425.00 KiB/s, done.
Total 45 (delta 6), reused 3 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to shielded-bastion-00322.
remote:
To https://git.heroku.com/shielded-bastion-00322.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/shielded-bastion-00322.git'

Что я сделал не так?

После выбора языка вручную

Enumerating objects: 50, done.
Counting objects: 100% (50/50), done.
Delta compression using up to 8 threads
Compressing objects: 100% (42/42), done.
Writing objects: 100% (50/50), 14.01 KiB | 421.00 KiB/s, done.
Total 50 (delta 10), reused 3 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildp...
remote: More info: https://devcenter.heroku.com/articles/buildpacks#d...
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to shielded-bastion-00322.
remote:
To https://git.heroku.com/shielded-bastion-00322.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/shielded-bastion-00322.git'
  • Вопрос задан
  • 225 просмотров
Пригласить эксперта
Ответы на вопрос 1
@cython
Heroku не смог определить язык, который использует ваш проект. Чтоб сделать это вручную перейдите из dashboard проекта в раздел Settings, в пунтке Buildpacks нажмите Add buildpack и выберите python
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы