Convox Community

Different domains between production and staging

We want a different set of domains for production and staging (each one on a different rack)
One option is to list all domains in convox.yml, but since every domain cost an ELB rules, it doesn’t make a lot of sense (ELB limit to 100 rules) - we are adding more domain than necessary on both production and staging

What is the solution then?

The convox.yml file can interpolate env variables, so the solution is pretty easy:

# convox.yml, common to production and staging
domain: "${HOST}"

And then you set the relevant env variable for each environement:

convox env set
# you must deploy for the change in your convox.yml to be picked up
convox deploy --wait