Skip to content

Commit

Permalink
[OtpChatBot#92] An attempt to resolve Can't set short name error
Browse files Browse the repository at this point in the history
```
~/code/Ybot (master ✘)✭ ᐅ ./bin/console.sh
2016-07-16 20:31:29 Can't set short node name!
Please check your configuration
```

This updates both bin/scripts to use `-name` over `-sname`
So far in my testing this seems to have resolved the issue.
I am not 100% sure though as I am new to this project and
new to Erlang.

Todd Pickell @tapickell <[email protected]>
  • Loading branch information
tapickell committed Jul 17, 2016
1 parent 5ce05fe commit 1ec5013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/console.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

erl -remsh ybot@$(hostname) -sname ybot_$RANDOM@$(hostname)
erl -remsh ybot@$(hostname) -name ybot_$RANDOM@$(hostname)
2 changes: 1 addition & 1 deletion bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi

erl -pa deps/*/ebin plugins/*/ebin ebin \
-boot start_sasl +P 2000000 \
-sname ybot@$(hostname) \
-name ybot@$(hostname) \
-s ybot \
-config ybot \
-noshell \
Expand Down

0 comments on commit 1ec5013

Please sign in to comment.