2017-06-15 5 views
0

httpsでローカルに動作するPhoenix/Elixir Appがありますが、プロダクション証明書を使用するように変更しようとすると、サーバーは応答せずエラーメッセージも表示されません。ローカルではあるが生産には至っていないSSLのためのSSL

In my dev.exs this was made with the hostname localhost

In prod.exs here are the keys. These were made with my production URL

は、私はこれはエラーをスロー

https: [port: 443, 
     host: "produrl.com" 
     keyfile: "priv/keys/domain.key", 
     certfile: "priv/keys/domain.crt"], 

設定でhttpsの部分にホストを追加することにより、現地での生産のURLにローカルホストを変更しようとしました sudo MIX_ENV=prod mix phoenix.server [info] Running LiteChartBe.Endpoint with Cowboy using http://localhost:80 [info] Application lite_chart_be exited: LiteChartBe.start(:normal, []) returned an error: shutdown: failed to start child: LiteChartBe.Endpoint ** (EXIT) shutdown: failed to start child: Phoenix.Endpoint.Server ** (EXIT) shutdown: failed to start child: {:ranch_listener_sup, LiteChartBe.Endpoint.HTTPS} ** (EXIT) shutdown: failed to start child: :ranch_acceptors_sup ** (EXIT) :badarg {"Kernel pid terminated",application_controller,"{application_start_failure,lite_chart_be,{{shutdown,{failed_to_start_child,'Elixir.LiteChartBe.Endpoint',{shutdown,{failed_to_start_child,'Elixir.Phoenix.Endpoint.Server',{shutdown,{failed_to_start_child,{ranch_listener_sup,'Elixir.LiteChartBe.Endpoint.HTTPS'},{shutdown,{failed_to_start_child,ranch_acceptors_sup,badarg}}}}}}}},{'Elixir.LiteChartBe',start,[normal,[]]}}}"} Kernel pid terminated (application_controller) ({application_start_failure,lite_chart_be,{{shutdown,{failed_to_start_child,'Elixir.LiteChartBe.Endpoint',{shutdown,{failed_to_start_child,'Elixir.Phoeni

localhostをprodurlに転送するだけの場合nローカルホストファイルには、エラーはスローされず、httpsを使用してサーバーに接続するものはありません。

答えて

0

エラーは、エンドポイント(** (EXIT) :badarg)の設定に間違った引数を指定したことを示します。あなたのホストURLの後ろにコンマがないことがbeacauseだと思います。

これはおそらくあなたの問題を解決しませんが、それはおそらくあなたの変更後に表示されるエラーメッセージの理由です。

関連する問題