i think you can use version control software e.g. mercurial, subversion, git, etc and configuration management software like puppet, ansible, chef, salt, etc. set separate environment for that, and then make sure it match with web2py appconfig. e.g. *models/db.py* from gluon.contrib.appconfig import AppConfig config_path = os.path.join(request.folder, 'private') myconf = AppConfig('%s/appconfig.ini' % config_path, reload = True) myconf_env = myconf.get('environment.type') db = DAL(myconf.get(myconf_env + '_' + 'db.uri'), pool_size = myconf.get(myconf_env + '_' + 'db.pool_size'), migrate_enabled = myconf.get(myconf_env + '_' + 'db.migrate_enabled'), check_reserved = ['all'], lazy_tables = True)
*development environment* private/appconfig.ini [environment] *type = dev* [dev_db] uri = sqlite://test.sqlite pool_size = 10 ; ignored for sqlite migrate_enabled = true migrate = true fake_migrate = false fake_migrate_all = false [prod_db] uri = postgres://postgres:password@localhost/test pool_size = 10 ; ignored for sqlite migrate_enabled = false migrate = false fake_migrate = false fake_migrate_all = false *production environment* private/appconfig.ini [environment] *type = prod* [dev_db] uri = sqlite://test.sqlite pool_size = 10 ; ignored for sqlite migrate_enabled = true migrate = true fake_migrate = false fake_migrate_all = false [prod_db] uri = postgres://postgres:password@localhost/test pool_size = 10 ; ignored for sqlite migrate_enabled = false migrate = false fake_migrate = false fake_migrate_all = false best regards, stifan -- 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.