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

Webistrano not deploying .htaccess files #11

Closed
tomfotherby opened this issue Aug 12, 2010 · 5 comments
Closed

Webistrano not deploying .htaccess files #11

tomfotherby opened this issue Aug 12, 2010 · 5 comments

Comments

@tomfotherby
Copy link
Contributor

This is a example of the rsync command that webistrano generates and executes as part of deployment:

rsync -lrpt --exclude='.svn' /var/www/live/shared/cached-copy/* /var/www/live/releases/20100812070050

Unfortunately, the above command doesn't copy over the .htaccess file from the cached-copy directory.

To fix the issue the rsync needs to remove the trailing star in the source path (or end with "/." instead of "/*").

For reference: OS: RHEL 5.5, rsync --version is "rsync version 2.6.8 protocol version 29"

@roidrage
Copy link
Collaborator

The code executing that command is not directly part of Webistrano. It simply utilizes Capistrano for running the actual deployment, where the issue should be raised instead. When it's fixed in Capistrano, we can apply the fix to the version bundled with Webistrano.

@tomfotherby
Copy link
Contributor Author

Thanks. Opps just found that this issue was already raised on the capistrano website: https://capistrano.lighthouseapp.com/projects/8716/tickets/140-rsync-globbing-causes-hidden-files-to-be-skipped

The Capistrano guys seem to think this is a feature not a bug.

@markjaquith
Copy link

I opened a Capistrano pull request for this. Hopefully it will be accepted.

@tomfotherby
Copy link
Contributor Author

Thanks for trying Mark but I doubt Capistrano will accept it because it will expose some people's source trees if they have .git or .svn files. Discussed previously in https://capistrano.lighthouseapp.com/projects/8716/tickets/140-rsync-globbing-causes-hidden-files-to-be-skipped.

@markjaquith
Copy link

I don't think that's a valid argument. Because note that rsync is only used if you have defined some excludes. If they haven't defined excludes, it just uses cp, so presumably they're already having those hidden directories copied if they're not explicitly excluding them. But we'll see.

insoul pushed a commit to insoul/webistrano that referenced this issue Oct 28, 2013
fixed convert ascii-8bit to utf-8.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants