Questions tagged [exrm]
37 questions
12
votes
1 answer
Duplicate protocol implementations in dependent projects
I have problems with consolidation of protocol implementation in my Elixir project. To be more specific I use Ecto and some simple project called Gold (doesn't matter much atm). The problem is, both of them (Ecto and Gold) use Poison to serialize…

Kelu Thatsall
- 2,494
- 1
- 22
- 50
6
votes
1 answer
** (CaseClauseError) no case clause matching: :eacces - Building release with MIX_ENV=prod
I am not sure where to put that error, elixir, phoenixframework, or nodejs.
I am trying to create my first release build with elxir and phoenix. During the release build I see the following error. I am just not sure if this is a version/dependency…

Andreas Guther
- 422
- 4
- 7
6
votes
1 answer
Loading files in exrm release
I'm using an html file as a template with the following code, working in dev mode (not in an exrm release):
{:ok, template} = File.read "priv/static/templates/receipt_template.html"
When the release is packaged with exrm, this relative path is no…

Dania_es
- 1,026
- 1
- 10
- 20
5
votes
1 answer
production env does not find OTP module :httpc when using exrm
I'm trying to create a release for my phoenix-framework project.
Everything is working fine, until my code need to do a specific action using :httpc module from OTP.
Apparently exrm, hasn't bundled the httpc module, and therefore could not find…

TheSquad
- 7,385
- 8
- 40
- 79
5
votes
1 answer
Parametrizing node name in Elixir Exrm
I want to use Exrm with Erlang distributed on a single machine.
I need to create multiple releases that differ only with node name.
I know, I can configure node name in rel/vm.args, but it will be static. Can I somehow generate multiple releases…

tkowal
- 9,129
- 1
- 27
- 51
5
votes
4 answers
Running a Phoenix application release with exrm crashes
I am trying to create a release of a stock Phoenix application (based on Elixir and Erlang) using exrm.
The first release for the dev mix environment is created fine, but crashes when run using ./rel/my_app/bin/my_app console. This happens running…

mavenastic
- 51
- 4
5
votes
1 answer
Phoenix EXRM release Websockets not working
I've tried to release my application with EXRM. The whole app is working except for WebSockets which fail to start
This is the error in the browser (Chrome)
WebSocket connection to 'ws://localhost:4001/socket/websocket?token=undefined' failed:…

Krzysztof Wende
- 3,208
- 25
- 38
5
votes
1 answer
When to use compile-only dependencies in Elixir
When would it be appropriate to specify a dependency only in deps in my mix.exs and not as a runtime dependency in applications?
I thought that applications are actual applications that need to be started before my own application can be started,…

Paweł Obrok
- 22,568
- 8
- 74
- 70
4
votes
1 answer
How do you configure the log files written to rel/myproject/log?
I've built my Elixir project and made a release with EXRM. When I copied it to a target server and started it up, I was happy to find that it was already capturing console output in files like "erlang.log.1" in a log directory. It appears to let the…

Matt
- 84,419
- 25
- 57
- 67
4
votes
1 answer
Elixir: Building and deploying an umbrella app with edeliver
I have been building and deploying an elixir app to production with edeliver. I have now organized the application into an umbrella project and am getting stuck configuring edeliver to build the project.
My initial thoughts were that each app in the…

Aaron Dufall
- 1,177
- 10
- 34
4
votes
1 answer
How to run 'mix' commands on a release (elixir/exrm)?
Working on an application built with Elixir/mix.
We have a bunch of utility functions (i.e.: seed/clear Mnesia db) which we run as elixir mix foo.
Once a release is built (with mix + exrm), and deployed on a target machine (where we do not expect…

Martin Langhoff
- 77
- 5
4
votes
1 answer
exrm failed to build release
I try to use exrm in my elixir project but it shows a very mysterious behaviour. This is my mix.exs:
defmodule MyApp.Mixfile do
use Mix.Project
def project do
[app: :my_app,
version: "0.0.1",
elixir: ">= 1.0.5",
…

zobel
- 281
- 4
- 17
3
votes
1 answer
How to Push a New Elixir Release on a Cluster Using exrm?
I do have a simple elixir app running on one node, exrm is doing his job properly by upgrading/downgrading it when needed.
I decided recently to create two nodes (it will be on two separates machines but i want to test it first on localhost)
So i…

Tanc
- 667
- 3
- 6
- 25
3
votes
1 answer
Elixir exrm release crashes on eredis start_link
I'm fairly new to Elixir and this is the first app that I'm attempting to release using exrm. My app interacts with a Redis database for consuming jobs from a queue (using exq), and also stores results of processed jobs in Redis using eredis.
My app…

Mikel
- 486
- 5
- 13
2
votes
2 answers
Cannot start phoenix release
Yesterday I faced very strange problem.
Configuration:
- Erlang 19
- Elixir 1.3.1
- Exrm 1.0.6
- Phoenix 1.2.0
- Ubuntu 15.10
The steps:
Compile project using MIX_ENV=prod mix compile
Build release using MIX_ENV=prod mix release
Try to test built…

vendettacore
- 1,439
- 1
- 13
- 28