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.

4ステップでLaravelで作ったウェブサイトをさくらサーバーで公開する

0
Posted at

前提条件

  • /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>
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?