私は自分のウェブページhttp://moneytree.space/catalogs/tradersを開こうとしていますが、次のようになりました:
ユニコーンと nginx が実行されています。私の作業ディレクトリは /home/zhall/zoulfia です
root@moneytree:/home/zhall/zoulfia# rails s -e production
=> Booting Unicorn
=> Rails 4.2.0 application starting in production on
http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
入力したとき:
私の /etc/nginx/sites-avaalable/default ファイルで私が得た:
server_name を localhost に変更する必要がありますか? 私はこれらすべての構成に不慣れです。どんな助けでも大歓迎です。ありがとうございました。エラーが発生したため、サーバーがシャットダウンした可能性があります。どこで彼らを追い詰めればいいのかわからない。私のログファイルは空です:(
nginx の構成を確認します。
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Webrick を起動すると:
Zoulfias-iMac:zoulfia zoulfiahall$ rails s -e production
=> Booting WEBrick
=> Rails 4.2.0 application starting in production on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2015-07-10 17:08:38] INFO WEBrick 1.3.1
[2015-07-10 17:08:38] INFO ruby 2.2.0 (2014-12-25) [x86_64-darwin13]
[2015-07-10 17:08:38] INFO WEBrick::HTTPServer#start: pid=18631 port=3000
アプリの起動に問題はありません。
Unicorn サーバーが起動すると、次のようになります。
root@moneytree:/home/zhall/zoulfia# rails s -p80 -e production
=> Booting Unicorn
=> Rails 4.2.0 application starting in production on http://localhost:80
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
root@moneytree:/home/zhall/zoulfia# ------> this line should not be here!
アプリケーション ログを設定してエラーを確認するにはどうすればよいですか?