For 99% of my sites I use the recommended Aegir/Barracuda/Octopus workflow and prefer it. However, certain clients require the full codebase in a third party version control repo. I would like to git clone their repo into a custom platform. I've gotten this to work, however at some point a script runs and changes permissions and adds files. I can ignore the files, but is there anyway to prevent the hosting system from modifying the platform. A git reset hard will allow me to work and commit upstream until the automatic script runs again. I totally understand if this isn't supported, but was just curious as I prefer to develop on my Octopus server instead of locally on a completely different setup.

Comments

omega8cc’s picture

There is a switch to disable this: https://github.com/omega8cc/boa/blob/master/docs/cnf/barracuda.cnf#L33

But it is global, of course. At least at the moment. We could probably use platform level INI file to override system level default.

brentratliff’s picture

Thanks for the quick reply, you guys think of just about everything.

omega8cc’s picture

Component: Documentation » Code
Category: Support request » Feature request
Priority: Minor » Normal

OK, let's make it a feature request then!

brentratliff’s picture

I love it. It makes developing with an iPad or Surface practical for these one off sites, while still allowing the permissions fix script to run on the other platforms. Thanks!

omega8cc’s picture

Status: Active » Fixed
brentratliff’s picture

Awesome, I see a new blog post in my future about why I don't develop locally. Thanks!

  • Commit 40f3864 on master by omega8cc:
    Issue #2226919 by brentratliff - Custom Platforms in Version Control...

  • Commit 40f3864 on master, 6.x-2.x by omega8cc:
    Issue #2226919 by brentratliff - Custom Platforms in Version Control...
brentratliff’s picture

At what point are the ini files created for the platform? I have the files for all my other custom and system platforms but not for the one I just verified.

omega8cc’s picture

Daily.

omega8cc’s picture

We could add INI templates on platform verify, probably. Adding active INI files makes sense only when there are sites to check and adjust INI settings as needed. Defaults set in the global.inc are probably enough initially.

brentratliff’s picture

Ok, thanks. I have one site on that platform. I will check in the morning. My concern is that, when the script runs and the file is added, the permissions will also be changed and a git reset will then delete the ini file.

omega8cc’s picture

The logic behind permissions fix and INI files is not connected, so nothing to worry about, hopefully, but I would recommend to add all INI files (both template and active) to .gitignore to avoid problems.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.