-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to set path to config.json file #93
Comments
HI @Kittiman - you should be able to put all the environment related configurations within the same config.json. The sample config.json shows how you can have different config for each environment. The "name" property maps to the environment followed by what configuration you need under proxies, targets and policies. You can have all of those under each environment you listed within the same config.json. The plugin will pick the appropriate configurations and do the needful. Hope that clarifies |
Hi,
Tanks for your reply.
We know that this is possible but there are case were it would be nice to be able to use one config file per environment. In some case it is easier to add a new config file for each proxy if you would need to add configuration for a new environment and you have 50 proxies. It is easier to script this. But this was not our main problem / wish.
But our current problem is that we would need to be able to specify the location of the config.json file to fit our ci process and today this is not supporter.
…----- Svarsmeddelande -----
Från: "Sai Saran Vaidyanathan" <[email protected]>
Till: "apigee/apigee-deploy-maven-plugin" <[email protected]>
Kopia: "Kittiman" <[email protected]>, "Mention" <[email protected]>
Rubrik: [apigee/apigee-deploy-maven-plugin] Add possibility to set path to config.json file (#93)
Datum: ons, maj 2, 2018 20:51
HI @Kittiman<https://github.com/Kittiman> - you should be able to put all the environment related configurations within the same config.json. The sample config.json<https://github.com/apigee/apigee-deploy-maven-plugin/blob/master/samples/forecastweatherapi-recommended/src/gateway/forecastweatherapi/config.json> shows how you can have different config for each environment. The "name" property maps to the environment followed by what configuration you need under proxies, targets and policies. You can have all of those under each environment you listed within the same config.json. The plugin will pick the appropriate configurations and do the needful. Hope that clarifies
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#93 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ASshYCu-FrtPHEQskap61kMs5kcLYzYYks5tugAwgaJpZM4TvlFO>.
|
Thanks for getting back. Still unclear on your explanation. Can you give me an example ? The whole point of having this within the main project is so that only the proxy's configurations are kept within this file. Not sure I get your problem. If you can provide an example, that will help. Your ask is not a big enhancement, just wondering if its needed. |
Hi @ssvaidyanathan |
We have seen customers do the replace approach. However will get back to you once we have this pushed. |
It would be nice to be able to set the path to the config.json file this would also open up to have different config.json files / profile. config-test.json, config-prod.json etc.
It look like the path to the config.json file is hard-code.
Ex:
-Dapigee.configFile=.\foo\config.json
The text was updated successfully, but these errors were encountered: