suppose a web site has a backend, and the default is test.com/admim
(test.com is my own personal domain and must be encrypted to log in, so the test will have a test manager account, and there will be an official manager account), and you can add back-end operations such as delete data. This backend is all data for testing (dev).
one day this web site is going to prod. The domain name of the official web site is called abc.com,. The original database is dev, but now it has been changed to prod
test.com/admin-> db:dev
abc.com-> db:prod
what portal will my network address use as the backstage? And how to judge and formalize in the backstage?
because it is not possible to use abc.com/admin as the backstage of formal data management.
my practice is
regardless of whether the test is formal or formal, the backend will have a unified access to test.com/admin
, but you can choose whether you want to buy formal data or test data, and you may use $_ GET to judge the situation (but using GET to indicate that this value must be added at the back of each network address.)
I think what would you do if it were you?