How to dynamically set phantomJS command line options on Heroku How to dynamically set phantomJS command line options on Heroku heroku heroku

How to dynamically set phantomJS command line options on Heroku


I would set a variable through

heroku config:set NAME=VALUE

which is read at runtime, so you could change it whenever you need to.

You could also update config variables via their API: https://devcenter.heroku.com/articles/platform-api-reference#config-var, if you have the need to change them more often.