I want to create an authentic staging environment where it will function
precisely as it does in the production environment.
Given some plugins, e.g. asset packager, will behave differently if it’s
not in ‘production’ environment, I figure it’s best to run the staging
server in ‘production’ as well, rather than creating a new ‘staging’
environment. Is this the correct way of doing this?
If so however, the staging server does need a slightly different
configuration in order to communicate differently to the email server. I
am having difficulty thinking of a way of doing this if they are both in
‘production’ environment.
I thought perhaps I could set another variable in mod_rails which can be
picked up in Rails. Though having scanned the documentation nothing
obvious sticks out.
Any advice is greatly appreciated.