
ショコラ
Laravel をインストールするには?
今回はドッカーコンポーズ使用の curl版でキメマス。

もっさん先輩
curl -s https://laravel.build/{プロジェクト名} | bash
インストールの最後に sudo でパスワードの入力を求められますので、sudo ができるユーザーで実行すること。
手順
Laravel をインストールする手順。
- 例えばプロジェクトディレクトリに移動します。
cd ~/projects
- プロジェクト名を決めて以下のコマンドを実行します。
curl -s https://laravel.build/laravel | bash
インストール時にプロジェクト名のディレクトリが作成されます。
- インストールの最後に sudo でパスワードの入力を求められます。
$ curl -s https://laravel.build/laravel | bash
_ _
| | | |
| | __ _ _ __ __ ___ _____| |
| | / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V / __/ |
|______\__,_|_| \__,_| \_/ \___|_|
Warning: TTY mode requires /dev/tty to be read/writable.
Creating a "laravel/laravel" project at "./laravel"
:
Please provide your password so we can make some final adjustments to your application's permissions.
[sudo] mossan のパスワード:
Thank you! We hope you build something incredible. Dive in with: cd laravel && ./vendor/bin/sail up
- 「sail up」でコンテナを起動します。
cd laravel && ./vendor/bin/sail up
以上