What is command to start CB in production mode on windows?

25 views
Skip to first unread message

ENTR0PY

unread,
Dec 6, 2014, 7:49:01 PM12/6/14
to chica...@googlegroups.com
What is command to start CB in production mode on windows?

start-server.bat always starts in dev mode
Message has been deleted

leeyo...@gmail.com

unread,
Dec 7, 2014, 11:09:13 PM12/7/14
to chica...@googlegroups.com
 START=$(./rebar boss c=start_cmd|grep -v "==>")

change start-server.bat :
 
(FOR /F "tokens=*" %%i in ('"rebar.cmd boss c=start_dev_cmd ^| findstr werl"') do set myvar=%%i)
 

to:
FOR /F "tokens=*" %%i in ('"rebar.cmd boss c=start_cmd ^| findstr werl"') do set myvar=%%i

i guess 
在 2014年12月7日星期日UTC+8上午8时49分01秒,ENTR0PY写道:

ENTR0PY

unread,
Dec 7, 2014, 11:37:18 PM12/7/14
to chica...@googlegroups.com
 START=$(./rebar boss c=start_cmd|grep -v "==>")  -> this gave no output


FOR /F "tokens=*" %%i in ('"rebar.cmd boss c=start_cmd ^| findstr werl"') do set myvar=%%i    -> this option said , failed to execute erl ,

 this reature must be really hard to do for CB ,  how is it RabbitMQ can run as  a service and CB can't start in production mode...
 

ENTR0PY

unread,
Dec 8, 2014, 12:18:39 AM12/8/14
to chica...@googlegroups.com
I have tried even this


FOR /F "tokens=*" %%i in ('"rebar.cmd boss c=start_cmd ^| findstr werl"') do set myvar=%%i

along with

case "${1:-''}" in
  'start')
        # Start Boss in production mode
        echo "starting boss in production mode..."
        START=$(rebarrebar boss c=start_cmd|grep -v "==>")
        do_start "$START"
        ;;
       
  'start-dev')
        # Start Boss in development mode
        START_DEV=$(rebarrebar boss c=start_cmd|grep -v "==>")
        do_start "$START"
        ;;

nothing works , CB only works in DEVMODE


On Saturday, December 6, 2014 8:49:01 PM UTC-4, ENTR0PY wrote:
Reply all
Reply to author
Forward
0 new messages