Questions tagged [relx]

A release assembler for Erlang.

Relx assembles releases for an Erlang/OTP release. Given a release specification and a list of directories in which to search for OTP applications it will generate a release output. That output depends heavily on what plugins available and what options are defined, but usually it is simply a well configured release directory.

The release-specification-file is optional but otherwise contains additional specification information for releases.

22 questions
27
votes
2 answers

Package management on Erlang and Elixir

I searched for package management on Erlang and Elixir and got some pointers to rebar rebar3 mix hex and relx etc. Can you help clarify the relationships among them? Where to use what? Is package just synonym to Erlang's application made up of…
sof
  • 9,113
  • 16
  • 57
  • 83
6
votes
2 answers

Why is relx not generating a release?

My relx configuration {release,{socket,"0.1.0"}}. {extend_start_script,true}. My .app file {application,socket, [{description,[]}, {vsn,"1"}, {registered,[]}, {applications,[kernel,stdlib,cowboy]}, …
Akshat Jiwan Sharma
  • 15,430
  • 13
  • 50
  • 60
4
votes
1 answer

OTP - Adding Couchbeam as a dependency - ** exception error: undefined function jsx:decode/1

I'm using rebar to get/compile my dependencies which has the following in rebar.conf: {deps, [ ... {couchbeam, ".*", {git, "git://github.com/benoitc/couchbeam.git", {branch, "master"}}} ]}. then I use relx to generate the release.…
neildaemond
  • 656
  • 1
  • 8
  • 17
4
votes
2 answers

Setting node name dynamically at boot time

I am building my release using relx and I can not use the default -sname someuser@127.0.0.1. Instead I would like to do something like -sname someuser@`hostname -i` to define the node's public IP at boot time. Using -sname someuser@hostname -i``…
Jérôme R
  • 1,227
  • 2
  • 13
  • 23
4
votes
2 answers

How to use sync properly with application built using relx release assembler?

I would like to use Sync on-the-fly recompiling with Cowboy project assembled using relx (as per Cowboy Getting Started Guide). The problem is that even if I manage to get Sync starting in my application by mentioning sync in applications list in…
Vladimir Lebedev
  • 1,207
  • 1
  • 11
  • 25
3
votes
1 answer

how to include .hrl files across multiple modules rebar3

I have several modules's directories. For each module, I have include (containing *.hrl files) and src (containing *.erl files) folder separeated. How can I share *.hrl file from a module to another without duplicating them? With rebar, I added…
3
votes
1 answer

Connecting to a running Erlang application release in a docker container

This is embarassing, but I am totally stuck and wasted the better part of this morning. I have an Erlang app release created by relx, deployed and running in a Docker container. I need to get to the shell on the running node, but I'm failing to do…
egbokul
  • 3,944
  • 7
  • 36
  • 54
3
votes
1 answer

erlang dbg module not work when use relx

I modified relx.config in a cowboy example,add runtime_tools {release, {echo_get_example, "1"}, [runtime_tools, echo_get]}. {extended_start_script, true}. when I use dbg:start() -> dbg:tracer() -> .... nothing outputs when calls then…
柚子youthy
  • 113
  • 8
3
votes
0 answers

Erlang app fails to start

When I attempt a _rel/bin/application_name console, I get this: {"Kernel pid terminated",application_controller," {application_start_failure,lager, {bad_return,{{lager_app,start,[normal,[]]}, {'EXIT',{{compile_forms,error},[ …
ombud
  • 199
  • 2
  • 10
2
votes
2 answers

How can I include a ".mustache" file in erlang release?

I am trying to use the mustache erlang lib with the separate template and view. I am using the rebar3 release structure. I follow the example in the docs, if I create both the simple.erl and simple.mustache. However, when I perform rebar3 compile,…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
1
vote
1 answer

Where do I call mnesia:create_schema/1 in a relx release?

I have an OTP application 'myapp' which depends on mnesia. Where should I put the call to mnesia:create_schema/1? If I add the dependency to {applications,[]} in myapp.app.src, mnesia starts first and I can't call create_schema in myapp:start/2. It…
Dan
  • 12,409
  • 3
  • 50
  • 87
1
vote
1 answer

How to use OS environment variables in rebar3

I currently have a rebar3 based erlang application, it consists of an erlang backend and a javascript frontend. To combine the frontend and backend build systems I use a makefile. My rebar.config looks like this: rebar.config: ... {relx, [{release,…
Mathias Vonende
  • 1,400
  • 1
  • 18
  • 28
1
vote
1 answer

Erlang "Kernel pid terminated" error

I try to use relx for release application. Relx did it without problems. But when I start application, I have the error: {"Kernel pid…
Nikolay Bildeyko
  • 109
  • 4
  • 10
1
vote
2 answers

Starting Erlang service at boot time (using Relx for creating release)

I have a server written in Erlang, compiled with Rebar, and I make a release with Relx. Starts nicely with /root/rel/share3/bin/share3 start The next step is to start when the server boots. I have tried different approaches, the last one is using…
mattias
  • 870
  • 5
  • 18
1
vote
2 answers

Erlang release, set node name for ./bin/XXXXX start -name nonode@nohost

I have an existing mnesia database, and now I started with proper erlang releases. I use relx. However, the problem is that I need to be compatible with the existing mnesia database, and when that was created, the node name was nonode@nohost. I have…
mattias
  • 870
  • 5
  • 18
1
2