前提・実現したいこと
ターミナルでrails s を実行してもwebページが表示されません。
発生している問題・エラーメッセージ
=> Booting Puma
=> Rails 5.2.3 application starting in development
=> Run rails server -h
for more startup options
Puma starting in single mode...
- Version 3.12.1 (ruby 2.5.1-p57), codename: Llamas in Pajamas
- Min threads: 5, max threads: 5
- Environment: development
- Listening on tcp://localhost:8080
Use Ctrl-C to stop
Started GET "/" for 61.89.88.135 at 2019-05-19 13:51:24 +0000
Cannot render console from 61.89.88.135! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
(0.2ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
↳ /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
(0.2ms) SELECT schema_migrations
.version
FROM schema_migrations
ORDER BY schema_migrations
.version
ASC
↳ /home/ec2-user/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
Processing by EventsController#top as HTML
Redirected to https://6dcc015de60645b88a9ba3a95f113e27.vfs.cloud9.ap-southeast-1.amazonaws.com/
Filter chain halted as :move_to_top rendered or redirected
Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
続く
該当のソースコード
rails
試したこと
①server.pidファイルを削除する
②sudo lsof -i -P | grep "LISTEN"
↓実行結果
rpcbind 2340 rpc 8u IPv4 11012 0t0 TCP *:111 (LISTEN)
rpcbind 2340 rpc 11u IPv6 11015 0t0 TCP *:111 (LISTEN)
rpc.statd 2364 rpcuser 9u IPv4 11096 0t0 TCP *:58537 (LISTEN)
rpc.statd 2364 rpcuser 11u IPv6 11102 0t0 TCP *:38881 (LISTEN)
sshd 2553 root 3u IPv4 11622 0t0 TCP *:22 (LISTEN)
sshd 2553 root 4u IPv6 11624 0t0 TCP *:22 (LISTEN)
sendmail 2585 root 4u IPv4 11718 0t0 TCP localhost:25 (LISTEN)
httpd 4000 root 4u IPv6 14582 0t0 TCP *:8081 (LISTEN)
httpd 4006 apache 4u IPv6 14582 0t0 TCP *:8081 (LISTEN)
httpd 4007 apache 4u IPv6 14582 0t0 TCP *:8081 (LISTEN)
httpd 4008 apache 4u IPv6 14582 0t0 TCP *:8081 (LISTEN)
httpd 4009 apache 4u IPv6 14582 0t0 TCP *:8081 (LISTEN)
httpd 4010 apache 4u IPv6 14582 0t0 TCP *:8081 (LISTEN)
mysqld 4292 mysql 10u IPv4 14841 0t0 TCP *:3306 (LISTEN)
httpd 4331 apache 4u IPv6 14582 0t0 TCP *:8081 (LISTEN)
③ps ax | grep rails
↓実行結果
8223 pts/1 S+ 0:00 grep --color=auto rails
いろいろ調べたのですがなんせ初心者なので②③のコマンドで何が行われているのかもわからず、実行結果から何がわかるのかもわからず、完全にお手上げ状態です。
補足情報(FW/ツールのバージョンなど)
サーバーを立ち上げたままターミナルを閉じてしまったことが原因だと思うのですが、、、
いくら調べても解決方法がわかりません。
ご教授していただければ幸いです。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/20 01:58