We're a place where coders share, stay up-to-date and grow their careers.
I have a Heroku app which is connected to a GitHub repo. I want to add a file in Heroku. I can do that by using bash command from Heroku cli.
Does the generated file persist? For example when I made a push to my GitHub repo
To add a file to Heroku app, you can push your file to your connected GitHub account.
You can check these settings here: dashboard.heroku.com/apps/your_app...
When this deployment succeeds, your new file will become persistently available in your App.
but I don't want to push the file to Github. It is a config file, it will be different based on deployment environment
Use the Heroku config vars option for environment-specific values.
devcenter.heroku.com/articles/conf...
I think I can't. I'm reading value inside JS code, it should be a file
I have a Heroku app which is connected to a GitHub repo. I want to add a file in Heroku. I can do that by using bash command from Heroku cli.
Does the generated file persist? For example when I made a push to my GitHub repo
To add a file to Heroku app, you can push your file to your connected GitHub account.
You can check these settings here: dashboard.heroku.com/apps/your_app...
When this deployment succeeds, your new file will become persistently available in your App.
but I don't want to push the file to Github. It is a config file, it will be different based on deployment environment
Use the Heroku config vars option for environment-specific values.
devcenter.heroku.com/articles/conf...
I think I can't. I'm reading value inside JS code, it should be a file