はじめに Vagrantfileで良く使う記述をまとめておきます。 環境と前提 ホストマシン:Mac OS X Yosemite 仮想環境ソフトウェア:VirtualBox 4.3.2 vagrant:1.7.2 ホストマシンとゲストマシンの共有フォルダの設定 共有フォルダを使いたい場合は以下のようにconfig.vm.synced_folderを記述します。 # Share an additional folder to the guest VM. The first argument is # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is
![よく使うVagrantfileの設定のまとめ](https://cdn-ak-scissors.b.st-hatena.com/image/square/89e63dfb4623a3783a9cdd6e9e9cc4a27670040e/height=288;version=1;width=512/https%3A%2F%2Fvirment.com%2Fimages%2F2015%2F03%2FNAT.png)