Wondering how you create a custom envirnonment along side prod.ex, dev.ex and test.ex for a staging server. Essentially, I want this to be the same as prod, just different endpoint and db.
I’m using edeliver if that helps.
Wondering how you create a custom envirnonment along side prod.ex, dev.ex and test.ex for a staging server. Essentially, I want this to be the same as prod, just different endpoint and db.
I’m using edeliver if that helps.
Iirc (I don’t have work code at hand atm) it’s rather easy, e.g. create a staging.exs
and edeliver has a built in concept of staging. edeliver should set the right environment and then this line import_config "#{Mix.env}.exs"
should load the appropriate configuration file.