or an env variable. On Friday, April 15, 2016 at 7:47:19 AM UTC+2, pbreit wrote: > > So what would be the strategy for having config settings for dev and > production? > > Would there be some way to branch on is_local? > > > On Sunday, July 19, 2015 at 12:06:42 PM UTC-7, Alex wrote: >> >> it's a clear separation of code and configuration. When you deploy the >> application on a server you usually have a different database connection >> string (and maybe other different settings as well), usually even multiple >> setups for dev, test and so on. Without a configuration file you'd have to >> change the source code on the deployed app. >> >> Am Sonntag, 19. Juli 2015 17:10:30 UTC+2 schrieb ermolaev...@gmail.com: >>> >>> why it better than code in /models/0.py ? >>> ==== >>> response.db_cs = 'DB_CONN_STR' >>> or >>> DB_SC = 'DB_CONN_STR' >>> ==== >>> >>> четверг, 16 июля 2015 г., 5:29:03 UTC+3 пользователь Alex написал: >>>> >>>> thanks for the AppConfig implementation! this is really useful and >>>> allows easy configuration of db connections. Actually I posted a question >>>> about this a few years ago - in the meantime I found a workaround but I'll >>>> change it to AppConfig soon. >>>> >>>> Is this already mentioned in the book somewhere? I couldn't find it. >>>> >>>> Alex >>>> >>>
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.