前提条件
- /home/<User>/wwwディレクトリが公開ディレクトリとする
- つまり、https://<User>.sakura.ne.jp/を叩くと/home/<User>/www以下にアクセスできる
- /home/<User>/<Project>にLaravelのプロジェクトディレクトリをおく
- https://<User>.sakura.ne.jp/<Project>/を叩くとプロジェクトのサイトにアクセスできるようにする
方法
- さくらサーバーにアクセスする
$ ssh <User>@<User>.sakura.ne.jp
- Composerをインストールする
$ curl -sS https://getcomposer.org/installer | php
- Laravelのプロジェクトを立ち上げる
php composer.phar create-project laravel/laravel <Project>
- Laravelのpublicディレクトリのシンボリックリンクをwww直下に作成する
$ ln -s /home/<User>/<Project>/public /home/<User>/www/<Project>