[ckan-changes] commit/ckan: dread: [fabfile][s]: #1275 Fabfile now customises ckan.site_id, so that buildbot runs each builder with different SOLR IDs, and parallel therefore do not conflict.

Bitbucket commits-noreply at bitbucket.org
Wed Sep 28 10:46:14 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/da1ccf277d1d/
changeset:   da1ccf277d1d
user:        dread
date:        2011-09-28 12:45:57
summary:     [fabfile][s]: #1275 Fabfile now customises ckan.site_id, so that buildbot runs each builder with different SOLR IDs, and parallel therefore do not conflict.
affected #:  1 file (-1 bytes)

--- a/fabfile.py	Tue Sep 27 17:11:42 2011 +0100
+++ b/fabfile.py	Wed Sep 28 11:45:57 2011 +0100
@@ -273,6 +273,9 @@
             # sed does not find the path if not absolute (!)
             config_path = os.path.join(env.instance_path, env.config_ini_filename)
             sed(config_path, dburi, newdburi, backup='')
+            site_id = '^.*ckan.site_id.*'
+            new_site_id = 'ckan.site_id = %s' % env.ckan_instance_name
+            sed(config_path, site_id, new_site_id, backup='')
             if not env.skip_setup_db:
                 setup_db()
             _run_in_pyenv('paster --plugin ckan db init --config %s' % env.config_ini_filename)

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list