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 1 year has passed since last update.

laravelアプリ作成

Posted at

前提条件
dockerで環境構築完了済み
iTerm2使用


dockerの起動

dockerを起動していない場合以下のコマンドで起動する

docker-compose up -d

起動確認 全てupになっていれば起動完了

docker-compose ps

アプリ作成

今回は、laravel-appを作成します。
まず、以下のコマンドでコンテナ内に入る

docker-compose exec app bash

以下のコマンドでアプリ作成

composer create-project --prefer-dist laravel/laravel laravel-app "6.*"

作成されると以下のような表示がされる。
スクリーンショット 2023-10-08 17.41.46.png
ブラウザに以下を入力してアクセスする

localhost:8000

以下のように表示されればアプリの作成成功です
スクリーンショット 2023-10-08 17.44.41.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?