What are the other heroku environment variables?

前端 未结 4 1919
萌比男神i
萌比男神i 2020-12-28 12:50

When setting up a server, I noticed that the environment variable process.env.PORT is used. Are there any other variables like this? Where can I see all of them?

4条回答
  •  萌比男神i
    2020-12-28 13:13

    See https://devcenter.heroku.com/articles/config-vars: there's a command that appears to tell you what your environment variables are.

    $ heroku config
    

    See if that works for you.

    EDIT: it appears the heroku docs linked above are wrong. Try this:

    $ heroku config -s --app 
    

提交回复
热议问题