I need to seed my database with different values based on the environment I’m deploying to. This is pretty straight forward when my application is running, but I need to run these scripts in my pre-start hooks. I’m currently using something like this.
I can’t quite figure out how to detect the environment during this phase. Anyone have experience with this?