Re: Running OFBiz in different modes (dev, production etc.)

2017-11-03 Thread Swapnil Mane
Thank you so much Taher, Gil, Jacques for your valuable inputs and time.
All the shared information will be really useful for me, I will have look
into this.

Thanks again for your kind inputs! :)


- Best  Regards,
Swapnil M Mane



On Fri, Nov 3, 2017 at 4:16 PM, gil portenseigne <
gil.portensei...@nereide.fr> wrote:

> Hi Jacques,
>
> Yes I'm interested to see Michael solution :)
>
> There is a Jira about env variable configuration :
> https://issues.apache.org/jira/browse/OFBIZ-9498
>
> Gil
>
>
>
> On 03/11/2017 11:40, Jacques Le Roux wrote:
>
>> Hi Gil,
>>
>> Michael also has a solution, I suggested to create a Jira and share our
>> experiences to get a consensus :)
>>
>> Jacques
>>
>>
>> Le 03/11/2017 à 10:00, gil portenseigne a écrit :
>>
>>> Hello Swapnil,
>>>
>>> Your mail make me think about a proposal i made this summer about
>>> environment configuration : https://s.apache.org/8mJh
>>>
>>> This wasn't adopted in a first place, and i wanting to investigate in a
>>> better way to do this, if no other opinions about it raised... (using
>>> gradle/template and such), but i couldn't find time to do so :).
>>>
>>> I'm still interested in this matter, this feature is very needed to ease
>>> devops !
>>>
>>> Regards,
>>>
>>> Gil
>>>
>>> On 03/11/2017 09:42, Swapnil Mane wrote:
>>>
 Hello team,

 Nowadays advance frameworks allow us to run the application in the
 different mode, e.g. dev mode, production mode etc.

 For dev mode, we may have the different set of configurations/settings
 and
 for production, it may be different.

 Here are few examples, there can be many

 1.) Cache related settings can vary for production and dev mode.
 2.) We might want to load minified JS, CSS for production and for dev
 mode
 normal files.
 3.) Locale settings.
 4.) Host and ports settings
 5.) Sever Hits settings

 Currently, I observed one way of doing it is maintaining patches for the
 production.
 Do we have any such mechanism of running OFBiz in the different mode or
 should we think about bringing this feature in OFBiz.

 Any thoughts and inputs are highly appreciated!


   - Best Regards,
 Swapnil M Mane
 Sr. Enterprise Software Engineer
 www.hotwaxsystems.com


>>>
>>>
>>
>


Re: Running OFBiz in different modes (dev, production etc.)

2017-11-03 Thread gil portenseigne

Hi Jacques,

Yes I'm interested to see Michael solution :)

There is a Jira about env variable configuration :
https://issues.apache.org/jira/browse/OFBIZ-9498

Gil


On 03/11/2017 11:40, Jacques Le Roux wrote:

Hi Gil,

Michael also has a solution, I suggested to create a Jira and share 
our experiences to get a consensus :)


Jacques


Le 03/11/2017 à 10:00, gil portenseigne a écrit :

Hello Swapnil,

Your mail make me think about a proposal i made this summer about 
environment configuration : https://s.apache.org/8mJh


This wasn't adopted in a first place, and i wanting to investigate in 
a better way to do this, if no other opinions about it raised... 
(using gradle/template and such), but i couldn't find time to do so :).


I'm still interested in this matter, this feature is very needed to 
ease devops !


Regards,

Gil

On 03/11/2017 09:42, Swapnil Mane wrote:

Hello team,

Nowadays advance frameworks allow us to run the application in the
different mode, e.g. dev mode, production mode etc.

For dev mode, we may have the different set of 
configurations/settings and

for production, it may be different.

Here are few examples, there can be many

1.) Cache related settings can vary for production and dev mode.
2.) We might want to load minified JS, CSS for production and for 
dev mode

normal files.
3.) Locale settings.
4.) Host and ports settings
5.) Sever Hits settings

Currently, I observed one way of doing it is maintaining patches for 
the

production.
Do we have any such mechanism of running OFBiz in the different mode or
should we think about bringing this feature in OFBiz.

Any thoughts and inputs are highly appreciated!


  - Best Regards,
Swapnil M Mane
Sr. Enterprise Software Engineer
www.hotwaxsystems.com










Re: Running OFBiz in different modes (dev, production etc.)

2017-11-03 Thread Jacques Le Roux

Hi Gil,

Michael also has a solution, I suggested to create a Jira and share our 
experiences to get a consensus :)

Jacques


Le 03/11/2017 à 10:00, gil portenseigne a écrit :

Hello Swapnil,

Your mail make me think about a proposal i made this summer about environment 
configuration : https://s.apache.org/8mJh

This wasn't adopted in a first place, and i wanting to investigate in a better way to do this, if no other opinions about it raised... (using 
gradle/template and such), but i couldn't find time to do so :).


I'm still interested in this matter, this feature is very needed to ease devops 
!

Regards,

Gil

On 03/11/2017 09:42, Swapnil Mane wrote:

Hello team,

Nowadays advance frameworks allow us to run the application in the
different mode, e.g. dev mode, production mode etc.

For dev mode, we may have the different set of configurations/settings and
for production, it may be different.

Here are few examples, there can be many

1.) Cache related settings can vary for production and dev mode.
2.) We might want to load minified JS, CSS for production and for dev mode
normal files.
3.) Locale settings.
4.) Host and ports settings
5.) Sever Hits settings

Currently, I observed one way of doing it is maintaining patches for the
production.
Do we have any such mechanism of running OFBiz in the different mode or
should we think about bringing this feature in OFBiz.

Any thoughts and inputs are highly appreciated!


  - Best Regards,
Swapnil M Mane
Sr. Enterprise Software Engineer
www.hotwaxsystems.com








Re: Running OFBiz in different modes (dev, production etc.)

2017-11-03 Thread gil portenseigne

Hello Swapnil,

Your mail make me think about a proposal i made this summer about 
environment configuration : https://s.apache.org/8mJh


This wasn't adopted in a first place, and i wanting to investigate in a 
better way to do this, if no other opinions about it raised... (using 
gradle/template and such), but i couldn't find time to do so :).


I'm still interested in this matter, this feature is very needed to ease 
devops !


Regards,

Gil

On 03/11/2017 09:42, Swapnil Mane wrote:

Hello team,

Nowadays advance frameworks allow us to run the application in the
different mode, e.g. dev mode, production mode etc.

For dev mode, we may have the different set of configurations/settings and
for production, it may be different.

Here are few examples, there can be many

1.) Cache related settings can vary for production and dev mode.
2.) We might want to load minified JS, CSS for production and for dev mode
normal files.
3.) Locale settings.
4.) Host and ports settings
5.) Sever Hits settings

Currently, I observed one way of doing it is maintaining patches for the
production.
Do we have any such mechanism of running OFBiz in the different mode or
should we think about bringing this feature in OFBiz.

Any thoughts and inputs are highly appreciated!


  - Best Regards,
Swapnil M Mane
Sr. Enterprise Software Engineer
www.hotwaxsystems.com





Re: Running OFBiz in different modes (dev, production etc.)

2017-11-03 Thread Taher Alkhateeb
Hello Swapnil,

You'll find a related discussion in [1]. Essentially, my opinion on
the subject is to utilize the build system but try to avoid as much as
possible embedding additional "state" into the code base. You can read
the full thread for more details.

[1] https://s.apache.org/9wPk

On Fri, Nov 3, 2017 at 11:42 AM, Swapnil Mane
 wrote:
> Hello team,
>
> Nowadays advance frameworks allow us to run the application in the
> different mode, e.g. dev mode, production mode etc.
>
> For dev mode, we may have the different set of configurations/settings and
> for production, it may be different.
>
> Here are few examples, there can be many
>
> 1.) Cache related settings can vary for production and dev mode.
> 2.) We might want to load minified JS, CSS for production and for dev mode
> normal files.
> 3.) Locale settings.
> 4.) Host and ports settings
> 5.) Sever Hits settings
>
> Currently, I observed one way of doing it is maintaining patches for the
> production.
> Do we have any such mechanism of running OFBiz in the different mode or
> should we think about bringing this feature in OFBiz.
>
> Any thoughts and inputs are highly appreciated!
>
>
>  - Best Regards,
> Swapnil M Mane
> Sr. Enterprise Software Engineer
> www.hotwaxsystems.com


Running OFBiz in different modes (dev, production etc.)

2017-11-03 Thread Swapnil Mane
Hello team,

Nowadays advance frameworks allow us to run the application in the
different mode, e.g. dev mode, production mode etc.

For dev mode, we may have the different set of configurations/settings and
for production, it may be different.

Here are few examples, there can be many

1.) Cache related settings can vary for production and dev mode.
2.) We might want to load minified JS, CSS for production and for dev mode
normal files.
3.) Locale settings.
4.) Host and ports settings
5.) Sever Hits settings

Currently, I observed one way of doing it is maintaining patches for the
production.
Do we have any such mechanism of running OFBiz in the different mode or
should we think about bringing this feature in OFBiz.

Any thoughts and inputs are highly appreciated!


 - Best Regards,
Swapnil M Mane
Sr. Enterprise Software Engineer
www.hotwaxsystems.com