LoginSignup
1
1

More than 5 years have passed since last update.

localホストには接続できるが、ローカルで開発していたアプリに接続できない

Last updated at Posted at 2017-05-26

127.0.0.1:8000に接続できない!

書籍にしたがって順調?に進めていたが、開発中のアプリに接続できなくなった。
昨日まで接続できていたのに。。。
確認してみると127.0.0.1には接続できているようなので、特定のアプリケーションでの問題な気がする。。。

スクリーンショット 2017-05-26 10.33.33.png

解決!!

問題はビルトインWebサーバーが起動していなかったため。

$ php app/console server:start

無事にアクセスできるようになり解決。パソコン再起動もしないでいじっていてビルトインWebサーバーの状況を気にしないでやっていたため起きた問題だと思われる。どこかのタイミングでタイムアウトしたんじゃないかと思っている。

ついでなのでコマンドをまとめておく。

ビルドインサーバーによるアプリケーションの起動
$ php app/console server:start

ビルドインサーバーの状態確認
$ php app/console server:status
起動している時の結果
Web server still listening on http://127.0.0.1:8000
起動していない時の結果
No web server is listening on http://127.0.0.1:8000

ビルドインサーバーの停止
$ php app/console server:stop
1
1
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
1
1