Questions tagged [rebar3]

Erlang build tool that makes it easy to compile and test Erlang applications and releases.

Rebar3 is an Erlang tool that makes it easy to create, develop, and release Erlang libraries, applications, and systems in a repeatable manner.

Rebar3 is not Rebar - as the two are completely different.

Rebar3 is also a self-contained Erlang script. It is easy to distribute or embed directly in a project. Tasks or behaviours can be modified or expanded with a plugin system flexible enough that even other languages on the Erlang VM will use it as a build tool.

http://www.rebar3.org/

107 questions
3
votes
1 answer

How do you initialize mnesia on production?

I'm using rebar3 to produce a release, but how do I initialize mnesia on production? If I write an "install" escript that does the mnesia:create_schema([node()]) - it will use a completely different node name from the one that release uses. So I end…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
2
votes
1 answer

Is there any way create ".ez" file using rebar3 in erlang?

I know that the support for loading code from archive files is experimental. An archive file for an application can, for example, be created like this: zip:create("mnesia-4.4.7.ez", ["mnesia-4.4.7"], [{cwd, code:lib_dir()}, {compress,…
孙海城
  • 389
  • 1
  • 7
2
votes
0 answers

rebar3 undef when running release console

I've been playing around with rebar3 (3.15.0) just to get it to run with the basic templates, and running into issues just trying to get a simple Hello World type example program going. I am starting with the template command to build a new…
Tim
  • 23
  • 3
2
votes
1 answer

Is there plugin path customizations available for rebar3?

I am looking to add my custom projects as plugins in rebar3.config. is it possible to fetch plugins locally or does it have to be from hex.pm?
phanikumar ch
  • 85
  • 1
  • 1
  • 13
2
votes
1 answer

How to: use a specific app from a different project as a dep

I'm trying to compile my app (app_1) with a dep from another project (proj2) which has some apps (e.g. app_a, app_b, app_c...). proj2 is has an apps folder in which there are the said apps (app_a etc.). I'm trying to get app_a, but it also depends…
whatever
  • 33
  • 6
2
votes
1 answer

Erlang / Rebar3 - How to add an application to release but not launch it?

I have an umbrella project, includes main_app, app1, app2. main_app can work singe, or can work with and manage app1 and app2. The decision about the launching of app1 and app2 is on external side (special config file, filled by a user). I use…
Nick Saw
  • 457
  • 4
  • 15
2
votes
1 answer

How to install an erlang package system wide instead of as a dependency?

I am trying to set up couchdb for development locally. Was going through the troubleshooting page http://docs.couchdb.org/en/latest/install/troubleshooting.html and it had some instructions to check a few deps that were needed to set it up…
sumopal
  • 337
  • 2
  • 12
2
votes
1 answer

IntelliJ: Unresolved function for dependencies module

I use rebar3 to manage Erlang project dependencies. The project runs well, but the my IDE cannot resolve the functions of the dependencies. Here are my demo projects: rebar3_module_a (a rebar3 lib module) rebar3_module_b (a rebar3 lib…
Ace.Yin
  • 845
  • 2
  • 9
  • 19
2
votes
2 answers

Syntax Error With Erlang 20.2

I encountered a wired problem with Erlang 20 . I use rebar3 as prod tar to generate an archived file and I use this to build an docker image based on erlang:20.2-alpine. On my Macbook Pro, it is ok to call bin/app start but on the target docker…
Yuanbo Han
  • 75
  • 8
2
votes
1 answer

Exclude module from compilation in rebar3

How can I exclude an Erlang module from compilation in rebar3? It should be included or excluded based on profiles.
nextloop
  • 61
  • 4
2
votes
1 answer

Using Rebar3 Common Test does not find hrl files in the include folder but eunit does

Using rebar3 eunit it is able to handle -include("some_file.hrl") in the tests, but this doesn't work with rebar3 ct. For some reason when I use rebar3 ct it tries to compile my eunit tests and fails because it can't find the .hrl files used in the…
casillic
  • 1,837
  • 1
  • 24
  • 29
2
votes
0 answers

How do I know which dependencies are required in a rebar3 project?

I cloned an Erlang project that uses rebar3 and has several dependencies: {folsom, ".*", {git, "git://github.com/basho/folsom.git", {branch, "master"}}}, {lager, {git, "https://github.com/basho/lager", {tag, "3.2.1"}}}, {erlcql, {git,…
goncalotomas
  • 1,000
  • 1
  • 12
  • 29
2
votes
1 answer

How to detach shell from erlang process?

I want to detach shell from erlang process without closing process. Does exist function like halt() or q() but for detaching shell? I tried to use Ctrl+D but it doesn't work, i use ssh maybe problem in that --------Update -------------- I run my…
Azat
  • 1,048
  • 8
  • 9
2
votes
1 answer

How to not symlink the priv directory for Rebar3 eunit tests?

When using: $ rebar3 as test eunit it compiles the code into ebin, but the other directories are symlinked in the _build/test/lib folder. I've tried using profile test by modifying: {relx, [{dev_mode, false}]} This works only for _build/test/rel…
casillic
  • 1,837
  • 1
  • 24
  • 29
2
votes
1 answer

Error with riakc_pb_socket:start_link() using rebar3 and Erlang

I created an erlang application using the cowboy rest http handler. The application stores data in riak kv. However I am unable to connect to my riak node to return data for the rest api. When I call riakc_pb_socket:start_link("127.0.0.1", 8087) I…
Oladipo Olasemo
  • 2,010
  • 24
  • 31