質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

Q&A

解決済

1回答

459閲覧

nginxの接続はできるのですが、ウェブページの内容が表示されない

avicii

総合スコア49

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

nginx

nginixは軽量で高性能なwebサーバーの1つです。BSD-likeライセンスのもとリリースされており、あわせてHTTPサーバ、リバースプロキシ、メールプロキシの機能も備えています。MacOSX、Windows、Linux、上で動作します。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

0グッド

0クリップ

投稿2020/04/17 07:20

今現在AWSを使い、ウェブサイトをデプロイしているのですが、urlを入力しても、真っ白のままで、ウェブサイトの中身が全く表示されない状態です。もしわかる方がいらしたら、教えて頂きたいです。

参考にしたサイト
https://qiita.com/odayan/items/76b905b69e576fcec507
https://qiita.com/iwaseasahi/items/7af16215f06fbc57c490

safariの状況
イメージ説明

Google Chromeの状況
イメージ説明

terminal

1nginx: [warn] conflicting server name "www.$$$$$$$$$.com" on 0.0.0.0:80, ignored 2Stopping nginx: [ OK ] 3Starting nginx: nginx: [warn] conflicting server name "www.$$$$$$$$$.com" on 0.0.0.0:80, ignored 4 [ OK ] 5[hello_user@ip-10-0-0-138 hello]$ bundle exec unicorn_rails -c /var/www/projects/hello/config/unicorn.conf.rb -D -E production 6[hello_user@ip-10-0-0-138 hello]$ cat log/production.log 7D, [2020-04-16T11:16:27.835346 #27208] DEBUG -- : (43.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB 8D, [2020-04-16T11:16:27.867374 #27208] DEBUG -- : (29.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) 9D, [2020-04-16T11:16:27.869834 #27208] DEBUG -- : ActiveRecord::SchemaMigration Load (1.2ms) SELECT `schema_migrations`.* FROM `schema_migrations` 10I, [2020-04-16T11:16:27.873898 #27208] INFO -- : Migrating to DeviseCreateUsers (20200409104016) 11D, [2020-04-16T11:16:27.891085 #27208] DEBUG -- : (15.6ms) CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `name` varchar(255), `nickname` varchar(255), `image` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB 12D, [2020-04-16T11:16:27.909480 #27208] DEBUG -- : (15.0ms) CREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`) 13D, [2020-04-16T11:16:27.922011 #27208] DEBUG -- : (11.1ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`) 14D, [2020-04-16T11:16:27.923711 #27208] DEBUG -- : (0.4ms) BEGIN 15D, [2020-04-16T11:16:27.926728 #27208] DEBUG -- : SQL (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20200409104016') 16D, [2020-04-16T11:16:27.930251 #27208] DEBUG -- : (3.3ms) COMMIT 17I, [2020-04-16T11:16:27.930313 #27208] INFO -- : Migrating to CreateRooms (20200409104150) 18D, [2020-04-16T11:16:27.945921 #27208] DEBUG -- : (14.4ms) CREATE TABLE `rooms` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB 19D, [2020-04-16T11:16:27.946765 #27208] DEBUG -- : (0.4ms) BEGIN 20D, [2020-04-16T11:16:27.947532 #27208] DEBUG -- : SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20200409104150') 21D, [2020-04-16T11:16:27.951068 #27208] DEBUG -- : (3.4ms) COMMIT 22I, [2020-04-16T11:16:27.951126 #27208] INFO -- : Migrating to CreateEntries (20200409104156) 23D, [2020-04-16T11:16:27.973418 #27208] DEBUG -- : (19.1ms) CREATE TABLE `entries` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11), `room_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_entries_on_user_id` (`user_id`) , INDEX `index_entries_on_room_id` (`room_id`) ) ENGINE=InnoDB 24D, [2020-04-16T11:16:28.009923 #27208] DEBUG -- : (36.2ms) ALTER TABLE `entries` ADD CONSTRAINT `fk_rails_99dc12d4fd` 25FOREIGN KEY (`user_id`) 26 REFERENCES `users` (`id`) 27 28D, [2020-04-16T11:16:28.037365 #27208] DEBUG -- : (27.1ms) ALTER TABLE `entries` ADD CONSTRAINT `fk_rails_f9d3a4412c` 29FOREIGN KEY (`room_id`) 30 REFERENCES `rooms` (`id`) 31 32D, [2020-04-16T11:16:28.038375 #27208] DEBUG -- : (0.4ms) BEGIN 33D, [2020-04-16T11:16:28.039253 #27208] DEBUG -- : SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20200409104156') 34D, [2020-04-16T11:16:28.043014 #27208] DEBUG -- : (3.6ms) COMMIT 35I, [2020-04-16T11:16:28.043072 #27208] INFO -- : Migrating to CreateMessages (20200409104202) 36D, [2020-04-16T11:16:28.067051 #27208] DEBUG -- : (17.8ms) CREATE TABLE `messages` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11), `room_id` int(11), `content` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_messages_on_user_id` (`user_id`) , INDEX `index_messages_on_room_id` (`room_id`) ) ENGINE=InnoDB 37D, [2020-04-16T11:16:28.094970 #27208] DEBUG -- : (27.6ms) ALTER TABLE `messages` ADD CONSTRAINT `fk_rails_273a25a7a6` 38FOREIGN KEY (`user_id`) 39 REFERENCES `users` (`id`) 40 41D, [2020-04-16T11:16:28.123265 #27208] DEBUG -- : (28.0ms) ALTER TABLE `messages` ADD CONSTRAINT `fk_rails_a8db0fb63a` 42FOREIGN KEY (`room_id`) 43 REFERENCES `rooms` (`id`) 44 45ActionController::RoutingError (No route matches [GET] "/img/favicon.ico"): 46 vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' 47 vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' 48 vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/rack/logger.rb:38:in `call_app' 49 vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/rack/logger.rb:20:in `block in call' 50 vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/tagged_logging.rb:68:in `block in tagged' 51 vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/tagged_logging.rb:26:in `tagged' 52 vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/tagged_logging.rb:68:in `tagged' 53 vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/rack/logger.rb:20:in `call' 54 vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/request_id.rb:21:in `call' 55 vendor/bundle/ruby/2.4.0/gems/rack-1.6.13/lib/rack/methodoverride.rb:22:in `call' 56 vendor/bundle/ruby/2.4.0/gems/rack-1.6.13/lib/rack/runtime.rb:18:in `call' 57 vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.11/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' 58 vendor/bundle/ruby/2.4.0/gems/rack-1.6.13/lib/rack/sendfile.rb:113:in `call' 59 vendor/bundle/ruby/2.4.0/gems/actionpack-4.2.11/lib/action_dispatch/middleware/ssl.rb:24:in `call' 60 vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/engine.rb:518:in `call' 61 vendor/bundle/ruby/2.4.0/gems/railties-4.2.11/lib/rails/application.rb:165:in `call' 62 vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:606:in `process_client' 63 vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:701:in `worker_loop' 64 vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:549:in `spawn_missing_workers' 65 vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:142:in `start' 66 vendor/bundle/ruby/2.4.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>' 67 vendor/bundle/ruby/2.4.0/bin/unicorn_rails:22:in `load' 68 vendor/bundle/ruby/2.4.0/bin/unicorn_rails:22:in `<top (required)>' 69 bundler (1.17.3) lib/bundler/cli/exec.rb:74:in `load' 70 bundler (1.17.3) lib/bundler/cli/exec.rb:74:in `kernel_load' 71 bundler (1.17.3) lib/bundler/cli/exec.rb:28:in `run' 72 bundler (1.17.3) lib/bundler/cli.rb:463:in `exec' 73 bundler (1.17.3) lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' 74 bundler (1.17.3) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' 75 bundler (1.17.3) lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch' 76 bundler (1.17.3) lib/bundler/cli.rb:27:in `dispatch' 77 bundler (1.17.3) lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start' 78 bundler (1.17.3) lib/bundler/cli.rb:18:in `start' 79 bundler (1.17.3) exe/bundle:30:in `block in <top (required)>' 80 bundler (1.17.3) lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' 81 bundler (1.17.3) exe/bundle:22:in `<top (required)>' 82 /home/hello_user/.rbenv/versions/2.4.0/bin/bundle:22:in `load' 83 /home/hello_user/.rbenv/versions/2.4.0/bin/bundle:22:in `<main>' 84

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

私のエラーで、データベースを2つ作っていたことにより、接続ができない状態にありました。
迷惑をかけて申し訳ございませんでした。

投稿2020/04/17 07:43

avicii

総合スコア49

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問