You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that you guys are definitely not interested in supporting others running your code, but I was wondering whether you might have any quick pointers on what envvars and services must run on prod environment. (In particular, I'm trying to get it running on heroku, but that's not so much important.)
Right now, these were my assumptions:
Created heroku env with
Created a Procfile.production without the mail process.
Create a .env.production with:
RAILS_ENV=production
smtp_settings for sendgrid
Run via heroku local -f Procfile.production -e .env.production
This is what I get (the url show that i was running rack, but same experience when running default webrick rails server):
The text was updated successfully, but these errors were encountered:
Hello. All the necessary configuration is in application.example.yml, which gets copied to your local machine as application.yml. We use the Figaro gem for configuration, and it comes with a handy command that will set all the proper env vars on Heroku based on the values in application.yml:
Also, if you look at your Heroku logs, you should see a helpful message about what went wrong, most likely a message from Figaro saying that a required key was not set.
Thanks @monfresh. If you folks are giving me the above advice (ie. you expect it should Just Work), I'm going to assume I am making a silly mistake that I should be embarrassed about...! :)
I'll do some sanity checks and am happy to submit any doc clarification that might help the next person. Really appreciate the nudge in the right direction. Sorry for the noise!
I know that you guys are definitely not interested in supporting others running your code, but I was wondering whether you might have any quick pointers on what envvars and services must run on prod environment. (In particular, I'm trying to get it running on heroku, but that's not so much important.)
Right now, these were my assumptions:
Procfile.production
without themail
process..env.production
with:RAILS_ENV=production
smtp_settings
for sendgridheroku local -f Procfile.production -e .env.production
This is what I get (the url show that i was running rack, but same experience when running default webrick rails server):
The text was updated successfully, but these errors were encountered: