Questions tagged [rebar]

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.

235 questions
9
votes
1 answer

how to setup cowboy with rebar3

I am a newbie of erlang/cowboy, using rebar3 now, as 99's cowboy is using its own erlang.mk system, how can I use rebar3 to build a cowboy release? Thank you in advance.
perigee
  • 9,438
  • 11
  • 31
  • 35
9
votes
3 answers

What is the standard build tool in Erlang?

I am very new to Erlang programming language. Is there a standard build tool in Erlang? I have googled out these, not sure which one I should use. Erlang Make http://www.erlang.org/doc/man/make.html Rebar Erlang.mk
redfrontedr
  • 331
  • 2
  • 8
9
votes
4 answers

Erlang Testing (Non Exported / Private) function of module using common test

I have a module in Erlang which has functions that are not exported by Erlang. How can I test / call these functions using common test framework?
Smarth Behl
  • 103
  • 6
9
votes
1 answer

How can I make Rebar run Common Test in a release directory?

I have a Rebar project with a top-level release directory that just includes the component applications as dependencies and contains the reltool configuration. Some of my applications have Common Test suites in test subdirectories, and I can run…
legoscia
  • 39,593
  • 22
  • 116
  • 167
8
votes
2 answers

Any way to have rebar get-deps check a local cache before cloning a repository?

I have a project with several dependencies on remote repositories (all on github.com at the moment if that helps). The dependencies don't change often. It would be nice if there was a way to keep the existing rebar.conf files the same so that they…
Frank Hunleth
  • 720
  • 4
  • 13
8
votes
1 answer

how to set include directory for rebar

In my module I have -include("blah.hrl"). The .hrl file is not in the module's directory, but somewhere else on my system. How can I make rebar find it when compiling? Is there a way to add a path to the include directory in rebar.config?
akonsu
  • 28,824
  • 33
  • 119
  • 194
8
votes
3 answers

How set Erlang node name, when run an Erlang application by basho rebar from command line

I have compiled my Erlang application by using basho rebar which makes an stand-alone escript executable file. I run it from command line like: ./myapp myconfig.config My questio is that how can I determine the Erlang node name that run my…
Sepehr Samini
  • 963
  • 4
  • 11
  • 15
7
votes
4 answers

Handling external libs with rebar

I want to use some libs in my application, like https://github.com/Panmind/erlang-ruby-marshal. That repo holds an src dir, but has no .app file (because it's not an application), so I can't use get-deps. I tried another approach, adding a libs dir…
Papipo
  • 2,799
  • 2
  • 23
  • 28
7
votes
2 answers

Erlang EUnit test module that depends on a library application

I have a medium-sized release with a handful of applications. I recently refactored some common functionality out into a library application within the release. This made my EUnit tests fail with undef messages whenever testing anything that…
dantswain
  • 5,427
  • 1
  • 29
  • 37
6
votes
3 answers

Erlang start application in production

When I'm testing my erlang application on localhost, I have a script that starts the server that looks like the following: #!/bin/sh PWD="$(pwd)" NAME="$(basename $PWD)" erl -pa "$PWD/ebin" deps/*/ebin -boot start_sasl \ -name devnode@127.0.0.1…
randombits
  • 47,058
  • 76
  • 251
  • 433
6
votes
1 answer

How to debug my Eunit test suite run when using rebar3?

I have created an release app with rebar3 (beta-4). Added some eunit tests and wrote some code. For now I have to debug one test case to see what I have to add to make the implementation to work properly. I found some articles about using dbg from…
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
6
votes
1 answer

Why cannot escript run?

rebar is in the current directory. $ls -l rebar --rwxr-xr-x 1 *** wheel 90778 8 6 23:05 rebar* $./rebar escript: no such file or directory: './rebar' $whereis escript escript: /usr/local/bin/escript I am using FreeBSD 9.0. thanks!
z_axis
  • 8,272
  • 7
  • 41
  • 61
6
votes
3 answers

When to use erlang application:start or included_applications and a supervisor?

I have an Erlang application which has a dependency in its deps directory on another application. From what I understand I can either; a) start my dependent application from my including application by calling application:start(some_other_app) which…
Vivilar
  • 97
  • 2
  • 7
6
votes
1 answer

Meaning of elements in Rebar deps configuration

We're using rebar to pull dependencies for our project, many of them from github. Our config looks something like: {deps, [ {cowboy, "", {git, "git://github.com/extend/cowboy.git", {branch, "master"}}} ]}. I understand enough to get…
AwesomeTown
  • 2,800
  • 2
  • 27
  • 41
1
2
3
15 16