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.

M1 Mac laravel 環境開発

Posted at

M1 Mac laravel 環境開発

この本を参考に勉強を進めてみることにした
まずdockerをダウンロード、アカウントを作成した

作業ディレクトリで 以下のコマンドをファイル作成のため

curl -s "https://laravel.build/first-app>php=81" | bash
bash: line 1: Invalid: command not found

エラーが出た、、、
色々調べてみた結果

PHPが入っていなかった

$ brew install php

これで解決したと思ったらまた別エラー発生、、、

# 80番ポートが既に使用されている
Error response from daemon: driver failed programming external connectivity on endpoint example-app-laravel.test-1 (0b19dc86c5561d920605fb84f36e99016d7cfde3baf771e38fba4127a902cee8): Bind for 0.0.0.0:80 failed: port is already allocated

80番ポートが使用されているみたいだった

https://qiita.com/y_sone/items/2bf510e551cd14d22042
上記のサイトを参考に

.env
APP_PORT=8080

.env に1行追加した
再び実行してみる

成功

$ ./vendor/bin/sail up -d
 ✔ Container first-app-redis-1         Ru...                               0.0s 
 ✔ Container first-app-mailpit-1       Running                             0.0s 
 ✔ Container first-app-meilisearch-1   Running                             0.0s 
 ✔ Container first-app-selenium-1      Running                             0.0s 
 ✔ Container first-app-mysql-1         Ru...                               0.0s 
 ✔ Container first-app-laravel.test-1  Started                             0.2s
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?