Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error deploying django website on docker through heroku - "Your app does not include a heroku.yml build manifest"

I am in the final steps of deploying a django website. It uses docker to run it and I'm finally deploying it through heroku. I run into an error when running "git push heroku master". I receive "Your app does not include a heroku.yml build manifest. To deploy your app, either create a heroku.yml: https://devcenter.heroku.com/articles/build-docker-images-heroku-yml". This is odd as I do in fact have a heroku.yml app.

heroku.yml

setup:
    addons:
    - plan: heroku-postgresql
build:
    docker:
        web: Dockerfile
release:
    image: web
    command:
        - python manage.py collectstatic --noinput
run:
    web: gunicorn books.wsgi

The tutorial I am following is using "gunicorn bookstore_project.wsgi" but I used books.wsgi as that is the directory my website is in. Neither worked.

like image 895
Eric Shingleton-Smith Avatar asked Dec 31 '25 03:12

Eric Shingleton-Smith


1 Answers

this happened to me when i pushed the wrong branch to heroku. I was testing in the develop branch but pushing master which had not heroku.yml.

pervious gitlab-ci

stages:
  - staging

staging:
  stage: staging
  image: ruby:latest
  script:
    - git remote add heroku https://heroku:[email protected]/$PROJECT.git
    - git push -f heroku master
  only:
    - develop

actual gitlab-ci

stages:
  - staging

staging:
  stage: staging
  image: ruby:latest
  script:
    - git remote add heroku https://heroku:[email protected]/$PROJECT.git
    - git push -f heroku develop:master
  only:
    - develop
like image 151
Nicola Scionti Avatar answered Jan 01 '26 19:01

Nicola Scionti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!