Hi All,
I'm having a strange problem when I work with Chicagoboss at my home. Once a week I work from home, as I'm doing today. When I start Chicagoboss in the office it's perfectly alright. When I'm working at office my boss.config configuration looks as follows:
{session_adapter, mnesia},
{session_key, "_boss_session"},
{session_exp_time, 525600},
{session_enable, true},
% {session_mnesia_nodes, [node()]}, % <- replace "node()" with a node name
{session_mnesia_nodes, ['myapp@abc-cn123456-wifi']}, % <- replace "node()" with a node name
But when I work from home the computer name changes as I connect to my home wifi. The Computer name shows ABC-CN123456
and I change my boss.config accordingly.
At home my boss.config is as follows. And I delete the Mnesia directory to start the development phase from the scratch.
{session_adapter, mnesia},
{session_key, "_boss_session"},
{session_exp_time, 525600},
{session_enable, true},
% {session_mnesia_nodes, [node()]}, % <- replace "node()" with a node name
{session_mnesia_nodes, ['myapp@ABC-CN123456']}, % <- replace "node()" with a node name
But I'm having difficulty in starting Chicagoboss with init-dev.sh.
It seems the cowboy is restarting always after 7-8 secs interval.
I'm sure there is a solution to it. What would be correct boss.config values for session_mnesia_nodes so that I don't have to reconfigure again when the computer name changes. Any help will be really appreciated.