Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify that writable directories exist #1000

Closed
wants to merge 1 commit into from

Conversation

yisraeldov
Copy link

Q A
Bug fix? Yes
New feature? No
BC breaks? No
Deprecations? No
Fixed tickets N/A

If there is a directory in the $writables list that is not in the git repository, then attempting to set that directories permissions will cause the deploy to fail.

@pluseg
Copy link
Contributor

pluseg commented Feb 17, 2017

@yisraeldov I guess that requires a test. What do you mean by that is not in the git repository? Is it outside of a project root or just in .gitignore?

@@ -18,6 +18,9 @@
return;
}

//verify that directories exist
run("mkdir -vp $dirs");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yisraeldov
It doesn't work. Need to move it under cd('{{release_path}}');.
Also please add test in test/recipe/CommonTest.php:testWriteable(). It requires just adding non-existed folder in writable_dirs and checking existence after deploy:writable.

Do you have time for that? If not then I'll do it.

@yisraeldov
Copy link
Author

yisraeldov commented Feb 21, 2017 via email

@pluseg
Copy link
Contributor

pluseg commented Feb 21, 2017

@yisraeldov it's not a problem, thanks for response! I will create a patch.

@pluseg
Copy link
Contributor

pluseg commented Feb 23, 2017

New PR: #1049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants