回答編集履歴
1
設定内容を追記
test
CHANGED
@@ -1,3 +1,29 @@
|
|
1
1
|
VagrantでVM環境を作っているのでしたら `Vagrantfile` というファイルがあるはずです。
|
2
2
|
|
3
3
|
そのファイルの中に仮想環境とローカル環境のディレクトリを同期させるという設定が書けるので、そのディレクトリで作業するとよいと思います。
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
----
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
```
|
12
|
+
|
13
|
+
config.vm.synced_folder "/home/miyamoto_ta/php_lesson", "/home/vagrant/php_lesson"
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
このように記述すると、ローカル環境の `/home/miyamoto_ta/php_lesson` と 仮想環境の `/home/vagrant/php_lesson` を同期させるという意味になります。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Windowsであれば
|
22
|
+
|
23
|
+
```
|
24
|
+
|
25
|
+
config.vm.synced_folder "c:/vagrant/php_lesson", "/home/vagrant/php_lesson"
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
のような記述になりますね。
|