marianoguerra / little-riak-core-book

source of the little riak core book
http://marianoguerra.github.io/little-riak-core-book/
33 stars 6 forks source link

Unable to execute rebar3 run #4

Open gpad opened 8 years ago

gpad commented 8 years ago

Hi, starting from scratch when I execute rebar3 release everything work fine, but when I execute rebar3 run I receive this strange error:

===> Verifying dependencies...
===> Compiling tanodb
===> Running cuttlefish schema generator
===> Starting relx build process ...
===> Resolving OTP Applications from directories:
          /home/gpad/workspace/riak/little_riak_core_exercise/tanodb/_build/default/lib
          /home/gpad/workspace/riak/little_riak_core_exercise/tanodb/apps
          /home/gpad/.kerl/erlang-releases/17.5/lib
          /home/gpad/workspace/riak/little_riak_core_exercise/tanodb/_build/default/rel
===> Resolved tanodb-0.1.0
===> Dev mode enabled, release will be symlinked
===> release successfully created!
vm.args needs to have a -name parameter.
  -sname is not supported.
  couldn't find 'nodename' in ../tanodb_config/tanodb.conf
  $PWD is /home/gpad/workspace/riak/little_riak_core_exercise/tanodb

If I run make console everything is ok. Can you help me please?

melekes commented 8 years ago

For the dev profile, make release solves this. For the dev*, I've just removed this line:

RUNNER_ETC_DIR="${RUNNER_ETC_DIR:-../tanodb_config}"

from config/admin_bin