LoginSignup
0
0

More than 1 year has passed since last update.

Cloud9で開発したLaravelプロジェクトを、ローカルで動かそうとした時につまった話

Posted at

はじめに

大学講義の最終課題で、Laravelを使用したWebアプリケーションを作成した。
参考にした書籍に従って、AWSのCloud9を使って開発を行なったが、教授に提出する際のデバッグのことを考え、ローカルで動くように改修しようとした際つまったことを記述する。

問題点

Cloud9で開発していた際にはhttpsでの接続がされていたが、localhostではhttpでの接続をしなければならなかったために、php artisan serve --port=8080 をコマンドで入力してから接続すると、

Invalid request (Unsupported SSL request)

がコマンドラインに表示され、接続ができなかった。

解決策

/routes/web.php に

URL::forceScheme('http');

を追記したところ、httpsがhttpに問題無く変わった。

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