You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Swapnil Mane <sw...@hotwaxsystems.com> on 2017/11/03 08:42:36 UTC

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

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.)

Posted by Taher Alkhateeb <sl...@gmail.com>.
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
<sw...@hotwaxsystems.com> 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.)

Posted by Swapnil Mane <sw...@hotwaxsystems.com>.
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.portenseigne@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.)

Posted by gil portenseigne <gi...@nereide.fr>.
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.)

Posted by Jacques Le Roux <ja...@les7arts.com>.
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.)

Posted by gil portenseigne <gi...@nereide.fr>.
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
>