Deploy custom code

Is it possible to use the CCHQ Ansible scripts to deploy a modified code base? There are times when I see the need to (maybe temporarily) create a project space with access to custom reports perhaps not warranting a pull request. e.g. I may want to temporarily add entries to the domains section here:

...and an additional item to DOMAIN_MODULE_MAP here:

Is there an easy way to go about that? Can I just edit the files after deploy and restart services to have them take effect?
Thanks!

Hi Ed,

You could indeed edit the code in the current release and restart the services.

Alternately you can change the github repository used to deploy code. In fab-settings.yml you can set the following two values (values shown below are the defaults):

code_repo: 'https://github.com/dimagi/commcare-hq.git'
default_branch: master
1 Like

Brilliant, thanks Simon, that's helpful!