TTD
TTD

Reputation: 310

How to edit Procfile in Heroku when using heroku war:deploy myapp.war

I'm trying to edit the Procfile in Heroku, however it seems like you can't edit it when using the command heroku war:deploy myapp.war to deploy the war file. Any suggestion on how i can either edit this, or run another shell script in web phase?

I've tried to include the Procfile directly with --include, however it gets overwritten by the default Procfile which is provded by Heroku.

Upvotes: 0

Views: 322

Answers (1)

codefinger
codefinger

Reputation: 10318

heroku war:deploy doesn't support a custom Procfile. However, you can customize the command using the following config vars:

  • JAVA_OPTS
  • WEBAPP_RUNNER_OPTS

You can set this with a command like heroku config:set WEBAPP_RUNNER_OPTS="..."

Upvotes: 0

Related Questions