Page MenuHomePhabricator

Scap3 config references to deployed directory
Open, MediumPublic

Description

When people reference /srv/deployment/[repo] in the scap.cfg the path being referenced is the final deployed path and not the current path /srv/deployment/[repo] since that will be swapped at the end of the current deploy.

Since the directory path /srv/deployment/[repo] is a completely different directory at different stages of the deploy this gets confusing.

We should either come up with some way to recognize when folks are referring to a path that will be replaced automatically, or, at least, create variables that people can use to refer to in their configs to reach the final paths {% cur_rev }

Event Timeline

thcipriani triaged this task as Medium priority.Sep 13 2016, 3:52 PM
thcipriani moved this task from Needs triage to Debt on the Scap board.

The symlink swapping is annoying. I wish there was a mode that disabled that and simply rely on git checkout $tag to implement rollback - git checkout leaves .gitignore'd files in place, for example.

When deploying phabricator with scap3 I have to run puppet after each deploy to recreate a bunch of stuff. I guess phabricator's puppet module needs to be fixed instead of scap but it's unfortunate that there isn't a way to keep /srv/deployment/repo as a single repository.