Sử dụng Drupal Vagrant Rsync để tăng performance cao nhất

Sử dụng Drupal Vagrant Rsync để tăng performance cao nhất

Sử dụng Drupal Vagrant Rsync để tăng performance cao nhất

We all know that Drupal doesn’t do really well under the default shared folder of VirtualBox. When we were given the task of creating a new box for one of our clients, we immediately went with NFS file system to circumvent this issue. We quickly realized two things:

  1. Vagrant is way faster with NFS enabled (but won’t work on Windows)
  2. Drupal is still slower reading files using NFS shared folder than using a default LAMP setup on the host directly

Thanks to the newly added feature in Vagrant 1.5, we can now use rsync to sync our shared folder with any Vagrant virtual machine. What does it mean for Drupal local development? A huge performance gain!

For your reference, Mitchell Hashimoto (the founder of Hashicorp and the force behind Vagrant) has a very good comparison of all the different file systems’ performance.

After doing extensive testing, we quickly realized that this new feature should be there by default of our Vagrant development box and was therefore updated to reflect this change.

Note : Vagrant rsync introduced one new command to watch for file changes between the host and the virtual machine. Once the machine is up and running, starting the watcher is really easy (make sure you are in the Vagrant root to use that command):

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
5 tính năng và thủ thuật cho Safari 5 Hidden Features and Tricks of Safari

5 tính năng và thủ thuật cho Safari 5 Hidden Features and Tricks of Safari

Safari là một trình duyệt web tốt, có tốc độ lướt web nhanh, có nền tảng là WebKit và mang lại nhiều tính năng tuyệt vời của Apple

MarTech Talks #4: CONTENT - TRAFFIC - CONVERSION tại Tp.HCM

MarTech Talks #4: CONTENT - TRAFFIC - CONVERSION tại Tp.HCM

Ngày 8.9.2019, đã diễn ra sự kiện MarTech Talks #04 tại MPLEX Studio & Theatre, 62 Trần Quang Khải, Phường Tân Định, Quận 1, TP.HCM của Asia Mar Tech Group (Đơn vị chủ quản của chuỗi MarTechTalks)

Hướng Dẫn Không cho người khác xem avatar Facebook

Để người khác không thể xem được ảnh đại diện facebook của bạn thì một cách

Công ty diệt chuột T&C

 

Diet con trung