LoginSignup
2
2

More than 5 years have passed since last update.

capistranoで自動デプロイ後、AWSにThe page you were looking for doesn't exist.と表示される。

Last updated at Posted at 2017-07-18

デプロイでハマったのでメモです。

The page you were looking for doesn't exist.

スクリーンショット 2017-07-18 19.11.02.png

結論からいいますと、capiを使った後はbundle exec rails s -e productionの実行は不要のようですね。自動的にサーバーが立ち上がるみたいです。

設定もきちんとしたし、何度もメンターに確認しました。
capistrano実行後のログをちゃんと読んでも、間違いはなかったです。
それでもうまくいかないで、あれこれ試していたら結論は以上でした。
不要なコマンドを実行していたと。

ポートが使用中かどうか確認する。

ポートが使用中かどうかは、下記コマンドで確認できます。

#terminal
lsof -i:3000

PIDっていうのが表示されるので、以下のコマンドを実行すると殺戮できるようです。

スクリーンショット 2017-07-18 19.29.29.png

#terminal
kill 1917
2
2
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
2
2