You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to turn off environment switching via URL
Note: Dev should still be able to reload app via ?reload=true&password=foo
Add environment setting of allowEnvironmentSwitchViaUrl, defaulting to true
Add an additional convenience method of migrateToLatest() for dbmigrate
Add environment setting of autoMigrateDatabase, defaulting to false
Why would you want this? Use cases would be:
You want to lock down environment switching, i.e, only ever allow production mode for security lockdown purposes: with "more" in the core now, i.e, Routing GUI, Migration GUI and internal embedded documentation, I can imagine this being popular.
You want to be able to migrate your database without having to switch to maintenance mode, then switching back again
You want to update your db via migrate but you use elastic beanstalk/cluster/loadbalancer, and if you have a session-less app (like an api) you might not get routed to the same instance each time (thus some instances would be in maintenance mode and you can't easily get "back" to them)
You have a codebase where people update their code, and just want it to "work" - a la wordpress updaters etc.
Caveats:
This would fire for each node on a cluster and would fire on each application restart; however, I think the overhead is minimal.
Errors would be difficult to rectify; however, there is an assumption that the developer has run the migrations locally first at least..
Would welcome any further suggestions before I implement.
The text was updated successfully, but these errors were encountered:
This would comprise of several parts:
?reload=true&password=foo
allowEnvironmentSwitchViaUrl
, defaulting totrue
migrateToLatest()
for dbmigrateautoMigrateDatabase
, defaulting tofalse
Why would you want this? Use cases would be:
production
mode for security lockdown purposes: with "more" in the core now, i.e, Routing GUI, Migration GUI and internal embedded documentation, I can imagine this being popular.Caveats:
Would welcome any further suggestions before I implement.
The text was updated successfully, but these errors were encountered: