Error H14 (No web processes running) deploy on Heroku

后端 未结 4 1300
耶瑟儿~
耶瑟儿~ 2021-02-20 09:19

I try to create simple java App on Heroku. I following step by step from http://samuelsharaf.wordpress.com/2011/11/06/create-a-simple-java-web-app-using-maven-and-upload-to-hero

相关标签:
4条回答
  • 2021-02-20 09:25

    Have you tried scaling one of your process types? e.g. heroku ps:scale web=1

    Or rather, check what's your current web count by using 'heroku ps' See https://devcenter.heroku.com/articles/scaling

    0 讨论(0)
  • 2021-02-20 09:25

    I kept running into the same problem. The sample python application ran fine, but mine did not. I logged into the dashboard and noticed that the web dyno count for my app showed zero. So I bumped it up on the web gui (i.e., strech the slider widget until you get a non-zero count.) and that worked. My dashboard also showed the heroku ps:scale web=1 dyno at zero, and I left it as zero.

    0 讨论(0)
  • 2021-02-20 09:31

    If you are using a container to build a web application, create a heroku.yaml file like this in your project's root:

    build:
    docker:
        web: Dockerfile
    run:
        web: [PUT YOUR CMD COMMAND IN DOCKERFILE HERE]
    

    Then add heroku.yaml to git repository. You can remove Procfile (optional). Finally deploy your repository as the following:

    git add .
    git commit -m "Add heroku.yml"
    heroku stack:set container -a [YOUR APP NAME]
    git push heroku master
    

    If your are pushing to heroku for the first time, you should run heroku git:remote -a [YOUR APP NAME] before git push heroku master

    0 讨论(0)
  • 2021-02-20 09:34

    You need to remove your ProcFile and add again

    git rm ProcFile –f   
    

    Again add the ProcFile to project

    1. Check the spellings
    2. Content structure of the ProcFile
    3. ProcFile should not contain any extensions.

    After that do the normal git procedure,

      git add . 
        
        git commit –m “add procfile” 
        
        git push heroku master 
     
    

    You will see,

    Procfile declares types -> web

    Instead of

    Procfile declares types -> (none)

    0 讨论(0)
提交回复
热议问题