How to create play heroku procfile?

后端 未结 3 1506
夕颜
夕颜 2020-12-16 16:39

I am following the directions here

http://blog.heroku.com/archives/2011/8/29/play/

but I do play run and then git push heroku master

3条回答
  •  心在旅途
    2020-12-16 16:54

    You need to create a file named Procfile in the root of your project and for Play it should contain

    web: play run --http.port=$PORT $PLAY_OPTS
    

    When you then deploy your application the $PORT and $PLAY_OPTS will be set by heroku when the application is started.

提交回复
热议问题