0
0

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.

【Laravel開発ノート】ドメインを設定するポイント

Posted at

1.目的

ローカル環境で「http://192.168.10.10/」→「http://weibo.test」と表示したい。

2.設定のポイント

2.1 「.env」ファイル

APP_DEBUG=true
APP_URL=http://weibo.test

2.2 「homestead.yaml」ファイル

sites:
    - map: weibo.test # <--- ここ!
      to: /home/vagrant/code/Laravel/public 

2.3 「/etc/hosts」ファイル

$ vim /etc/hosts

最後の一行に以下の内容を追加

192.168.10.10 weibo.test
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?