Skip to content
This repository was archived by the owner on Sep 5, 2018. It is now read-only.
Next Next commit
Releasing, exrm and ssl
https://dash.readme.io/project/phoenixframework/v1.1.4/suggested/update/5738581913fb8f0e00999b55

As I run into some errors with my release and ssl app, I thought I shared some insight. Might also apply to release with exrm section. But people who want to do ssl are propably more likely to look under the ssl section for troubleshooting, so suggesting it here.

-Milan Köpke
  • Loading branch information
Jason Stiebs committed May 17, 2016
commit 26649c1fea49012b68ce6b9bf19c279e0eda1a80
14 changes: 14 additions & 0 deletions bonus_guides/P_using_ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,17 @@ Without the `otp_app:` key, we need to provide absolute paths to the files where
```elixir
Path.expand("../../../some/path/to/ssl/key.pem", __DIR__)
```

Releasing with Exrm:

In order to build and run a release with exrm, make sure you also include the ssl app in `mix.exs`:

```elixir
def application do
[mod: {HelloPhoenix, []},
applications: [:phoenix, :phoenix_html, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex, :ssl]]
end
```

Else you might run into errors: `** (MatchError) no match of right hand side value: {:error, {:ssl, {'no such file or directory', 'ssl.app'}}}`