4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VagrantのRsync Synced Folderについて

Posted at

Rsync Synced Folder

ホストマシンから、ゲストマシンへのファイルの同期をするシステム

メリット

  • 開発はホストマシンで、実行はゲストマシンで行う
  • 好きなエディタで開発できる
  • VirtualBox の shared folderよりもパフォーマンスがよい

デメリット

  • ファイルオーナーが書き換えられてしまう

更新されるタイミング

vagrant up , vagrant reeled, vagrant provision, vagrant rsyncが実行されたタイミング
このままだと毎回手動で更新しなければならないので、vagrant rsync-autoを実行しておけば、対象のディレクトリに変更があったときに自動で更新してくれる

環境

Vagrant 1.5以上
ホストとゲストの両方に、rsyncが必要
基本的にはVagrantが自動的にインストールしてくれる

設定

Vagrantfileのsynced folderでtype=rsyncを指定する

参考

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?