Homesteadに複数サイト追加するために二つの方法があったのでメモ。
前提として新しいサイトのドメインをhomestead.appとする。
公式サイトを参考にしました
http://readouble.com/laravel/5/0/0/ja/homestead.html
Homestead.yamlに記載する方法
※既存のDBを一回壊してしまうためおすすめできません。
Homestead.yamlのsitesに追記する
-map homestead.app to /home/vagrant/Code/path/to/public/directory
Homesteadのディレクトリで以下のコマンドを実行
homestead provision
serveコマンドを用いる方法
homestead ssh で仮想環境にログインする。
以下のコマンドを打つ
serve homestead.app /home/vagrant/Code/path/to/public/directory 80
所感
既存の環境にまで影響がでてしまうので、個人的には2番目を使っていこうかなーとおもいます。
2017年4月14日 — 2:17 PM
My programmer is trying to persuade me to move to
.net from PHP. I have always disliked the idea because of the
expenses. But he’s tryiong none the less. I’ve been using WordPress on various websites
for about a year and am worried about switching to another platform.
I have heard excellent things about blogengine.net.
Is there a way I can import all my wordpress content into
it? Any kind of help would be really appreciated!
2017年4月14日 — 4:40 PM
Oh my goodness! Awesome article dude! Thank
you so much, However I am experiencing troubles with your
RSS. I don’t understand the reason why I cannot subscribe to it.
Is there anybody getting similar RSS issues?
Anybody who knows the answer can you kindly respond? Thanks!!