While going through the project documentation and setup scripts, I noticed that the service_config.sh script currently requires manual string replacement start functioning.
In the readme file users are instructed to manually edit the file to replace the private-ip placeholder with their actual server IP before execution.
This is the problem with it:
- manual step: it doesn't allow fully automated or one go deployment
- fragile: if user misses the above step, the script will configure kong with invalid url http://private-ip:8090 causing routing failure.
- portability: script needs to be modified everytime environment changes
While going through the project documentation and setup scripts, I noticed that the service_config.sh script currently requires manual string replacement start functioning.
In the readme file users are instructed to manually edit the file to replace the private-ip placeholder with their actual server IP before execution.
This is the problem with it: