We load the ENV Variables into the DB when we Seed it. The need came from the Serer's API having issues with the instances variables not propagating correctly, but we found this can be useful regardless for all aspects of the server and clients.
The issue is that we will not want to re-seed the database every time we change the environment variables.
Create a rake task that replaces the DB loading the Env variables at the beginning of the Seeding.
We load the ENV Variables into the DB when we Seed it. The need came from the Serer's API having issues with the instances variables not propagating correctly, but we found this can be useful regardless for all aspects of the server and clients.
The issue is that we will not want to re-seed the database every time we change the environment variables.
Create a rake task that replaces the DB loading the Env variables at the beginning of the Seeding.