oTree Forum >

Heroku deployment failed: “Push failed: cannot parse Procfile”

#1 by Zoe

Dear oTree team,

I'm currently trying to deploy my oTree app to Heroku, but I keep running into this error during deployment:

**"Push failed: cannot parse Procfile"**

Here’s what I’ve done so far:

- I created a `Procfile` in the root directory of my project (with no file extension)
- The content is exactly: web: otree runprodserver
- I used the command `echo web: otree runprodserver > Procfile` to ensure the correct formatting
- I confirmed the file is in UTF-8 encoding and there are no extra spaces, new lines, or special characters
- I’ve added the file using `git add Procfile`, committed, and pushed to Heroku

However, I still receive the same error:  
**“cannot parse Procfile”**

Here’s the relevant Heroku log snippet:
remote: ! Push failed: cannot parse Procfile.
remote: ! Please try pushing again.
remote: ! If the problem persists, see https://help.heroku.com/...

Has anyone encountered this before or have any ideas what might be going wrong?

Thanks in advance for your help!

Best regards,  
Zoe

Write a reply

Set forum username