help with multiple production evvironmnets & devise config

5 views
Skip to first unread message

tom

unread,
Dec 7, 2018, 2:47:29 PM12/7/18
to Ruby on Rails: Talk
hi, i have 2 (A&B) production env files, set/loaded by passenger.

here an excerpt from A:

config.active_record.dump_schema_after_migration = false
config.app_domain = 'fooooooo.com'
config.action_mailer.default_url_options = { host:
'https://www.fooooooo.com' }
config.action_mailer.asset_host = 'https://www.fooooooo.com'
config.action_mailer.default_options = {from: 'in...@fooooooo.com'}


here an excerpt from B:

config.active_record.dump_schema_after_migration = false
config.app_domain = 'blablabla.com'
config.action_mailer.default_url_options = { host:
'https://www.blablabla.com' }
config.action_mailer.asset_host = 'https://www.blablabla.com'
config.action_mailer.default_options = {from: 'in...@blablabla.com'}

but when i do a password reset from within devise mailer using B, the
links are still set to
https://fooooooo.com/users/password/edit?reset_password_token=NV19qyaA4FHhv825RV_V


i am not overidding anything anymore. all stock code


thx
Reply all
Reply to author
Forward
0 new messages