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?

Laravel Sailによる環境構築

Posted at

目的

Dockerでの設定なしで気軽に環境構築ができるLaravel Sailを使ってみる

手順

以下のコマンドを実行すると一発でLaravelの環境(example-app)が構築される

curl -s "https://laravel.build/example-app" | bash

このコマンドの中でMySQLやRedis、Seleniumといったツールのインストールや必要なDockerイメージのpullからビルド、そして起動までを行います。

時間をおいてコンテナが起動した後

cd example-app

でディレクトリを移動し、sessionsやusersといった初期テーブルを作成するためmigrateするコマンドを実行します

./vendor/bin/sail artisan migrate

http://localhost
にアクセスして以下のような画面が表示されれば環境構築は完了です。
image.png

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?