-
-
Notifications
You must be signed in to change notification settings - Fork 645
Add docs on how to improve performance by mixing synced folder types #1259
Conversation
This placement seems appropriate to me. |
Going to do a little testing before merging, though (I trust you, but I want to see how much of an impact this could make for poor forlorn Windows non-10 devs. |
Don't merge just yet btw, I'll test this too and probably change this and the example above to use drupal-project structure |
So it didn't work :) It seems that since we updated the examples to use |
These are the rsync executions rsync --verbose --archive --delete -z --chmod=ugo=rwX --no-owner --no-group \
--rsync-path ".........." \
--exclude ".vagrant/" \
--exclude "private" \
--exclude ".git" \
--exclude "web/sites/default/files" \
--exclude "tmp" \
--exclude "config/drupal" \
/Users/cindy/Projects/Personal/drupal-vm/ vagrant@127.0.0.1:/var/www/drupal
|
I'm also investigating doing reverse shared folders (e.g. sync folder from guest to host, using sshfs or other options). |
Sharing guest to host is great for php performance on large codebases. We do it for some vagrant projects. I would suggest samba / smb as a protocol since all hosts have passable clients for it. The drawbacks are:
|
@yareckon - Especially "performance problems move to the IDE / text editor" — global find-and-replace is an especially slow performer. |
@oxyc - I'm okay with merging this as-is, if the way it's currently written works. Maybe we could also add a link to the article Drupal VM on Windows - a fast container for BLT project development, which has some recommendations around reverse-mounting a Samba share, or using SSH sync like with PhpStorm? |
2. **Use `smb` for the synced folder's type.** | ||
2. **Use `rsync` for the synced folder's type.** This requires that you have `rsync` available on your Windows workstation, which you can get if you install a substitute CLI like [Cygwin](https://www.cygwin.com/) or [Cmder](http://cmder.net/). | ||
1. **Use `smb` for the synced folder's type.** | ||
1. **Use `rsync` for the synced folder's type.** This requires that you have `rsync` available on your Windows workstation, which you can get if you install a substitute CLI like [Cygwin](https://www.cygwin.com/) or [Cmder](http://cmder.net/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recall a discussion somewhere where you preferred this way of numbering markdown lists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah; it's easier to update them without renumbering stuff. Good catch!
See #1242 (comment).
How's that? Or maybe under the synced folder section as it's more a feature than a performance improvement suggestion