First of all, I will talk a little about the purpose of this question. We have several linux boxes on the same network on which different services are installed, some times these boxes are decommissioned and new boxes take its place. The services also need to be moved along with thoxe boxes. Now my internal web portal which is built in angular.js has to be be redeployed with the new set of hardcoded urls to access the services in the new boxes.
I am trying to get around this problem by creating a page that we could use to change the backend database and trigger the website to reload the url mappings from the DB. So in the event there is a box move the service urls can be picked up dynamically on changing the config. All the configuration is stored in a Database.
I havent figured out the triggering part yet. Is this the correct way of creating the setup, or am I doing it all wrong. With my limited knowledge in web dev this is all I could come up with.
Any pointers or reference docs would be very useful.