Hi Nadeesha,

Looks like in Windows you have to export env values as follows [1].

// In Linux and Mac.
$ export b7a_http_tracelog_path=”./trace.log”
$ export b7a_http_accesslog_path=”./access.log” //

In Windows.
$ set(x) b7a_http_tracelog_path=”./trace.log”
$ set(x) b7a_http_accesslog_path=”./access.log”

Could you please try that? If it works we can add to the documentation.
@[email protected] <[email protected]> @Shani Ranasinghe
<[email protected]> @Mariangela Hills <[email protected]>

In addition to this, CLI parameters should work in Windows as well. @Isuru
Haththotuwa <[email protected]> @Chamila Adhikarinayake <[email protected]> :
Thoughts?

[1] - https://ballerina.io/learn/api-docs/ballerina/config.html

Thank you!

On Mon, Nov 19, 2018 at 7:16 PM Nadeesha Gamage <[email protected]> wrote:

> Hi Rajitha,
> Setting the environment explicitly doesnt work as well for a Windows
> environment.
>
> Nadeesha
>
> On Mon, Nov 19, 2018 at 6:29 AM Nadeesha Gamage <[email protected]> wrote:
>
>> Hi Roshan,
>> I will try that
>>
>> Thank you,
>> Nadeesha
>>
>> On Mon, Nov 19, 2018 at 6:12 AM Rajith Roshan <[email protected]> wrote:
>>
>>> Hi Nadeesha,
>>> May be an issue reading -e CLI parameters from ballerina config API. Can
>>> you try setting the environment variable explicitly[1] as well.
>>>
>>> [1] - export InventoryAPI_1_0_prod_endpoint_0="
>>> http://localhost:8080/xxxxx";
>>>
>>> Thanks!
>>> Rajith
>>>
>>> On Mon, Nov 19, 2018 at 8:22 AM Nadeesha Gamage <[email protected]>
>>> wrote:
>>>
>>>>
>>>> + API M team
>>>>
>>>> ---------- Forwarded message ---------
>>>> From: Nadeesha Gamage <[email protected]>
>>>> Date: Sun, Nov 18, 2018 at 11:16 AM
>>>> Subject: [API M] Overridding endpoint information doesnt work as
>>>> expected in API Micro Gateway 2.6
>>>> To: dev <[email protected]>
>>>>
>>>>
>>>> Hi Devs,
>>>> I am trying to override an existing backend API endpoint exposed via MG
>>>> (after building the MG). I am executing the the following command to run
>>>> the MG but it still goes to the old endpoint. I have attached the source
>>>> .bal file generated in setup. The command that I executed is also given
>>>> below
>>>>
>>>> gateway -e InventoryAPI.1.0.prod.endpoint.0="
>>>> http://localhost:8080/xxxxx";
>>>>
>>>> I am running this on a Windows environment.
>>>>
>>>> Can anyone let me know if I am doing something wrong or is this an
>>>> issue?
>>>>
>>>>
>>>> --
>>>> Nadeesha Gamage
>>>> Senior Lead Solutions Engineer
>>>> T : +94 77 394 5706
>>>> B : https://nadeesha678.wordpress.com/
>>>> --
>>>> Nadeesha Gamage
>>>> Senior Lead Solutions Engineer
>>>> T : +94 77 394 5706
>>>> B : https://nadeesha678.wordpress.com/
>>>>
>>>
>>>
>>> --
>>> Rajith Roshan
>>> Senior Software Engineer, WSO2 Inc.
>>> Mobile: +94-7 <%2B94-71-554-8430>17-064-214
>>>
>>
>>
>> --
>> Nadeesha Gamage
>> Senior Lead Solutions Engineer
>> T : +94 77 394 5706
>> B : https://nadeesha678.wordpress.com/
>>
>
>
> --
> Nadeesha Gamage
> Senior Lead Solutions Engineer
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Associate Technical Lead
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to