I am actually checking the logs now. I tried with dev and also production.
2015-04-22 23:29:06.864 [notice] <0.68.0>@lager_app:132 Deprecated lager_file_backend config detected, please consider updating it
2015-04-22 23:29:07.775 [info] <0.7.0> Application lager started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:29:07.838 [info] <0.56.0> Starting Boss in production mode....
2015-04-22 23:29:07.860 [info] <0.56.0>@boss_db:start:77 Start Database Adapter boss_db_adapter_mock options [{adapter,mock},{cache_enable,false},{cache_prefix,db},{shards,[[{db_host,"localhost"},{db_adapter,mongodb},{db_port,27017},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database"},{db_shard_id,asksomething},{db_shard_models,[saved_client]}],[{db_host,"localhost"},{db_adapter,mock},{db_port,1978},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database2"},{db_shard_id,asksomething2},{db_shard_models,[ip_database]}]]},{is_master_node,true}]
2015-04-22 23:29:07.948 [info] <0.7.0> Application mongodb started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:29:08.053 [info] <0.56.0> Starting master services on 'asksomething@mert-VirtualBox'
2015-04-22 23:29:08.071 [info] <0.7.0> Application tinymq started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:29:08.142 [info] <0.56.0> SSL:[]
2015-04-22 23:29:08.144 [info] <0.56.0> Starting cowboy... on 'asksomething@mert-VirtualBox'
2015-04-22 23:29:08.159 [info] <0.7.0> Application cowlib started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:29:08.175 [info] <0.7.0> Application ranch started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:29:08.246 [info] <0.7.0> Application cowboy started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:29:08.246 [info] <0.56.0> Starting http listener... on
0.0.0.0:8001
2015-04-22 23:29:08.336 [notice] <0.56.0>@boss_compiler:compile:47 Compile file "../asksomething/priv/init/ask_something_01_news.erl" with options [{include_dirs,["/home/mert/Desktop/asksomething/asksomething/include"]}]
AND DEV;
2015-04-22 23:31:05.386 [notice] <0.63.0>@lager_app:132 Deprecated lager_file_backend config detected, please consider updating it
2015-04-22 23:31:06.036 [info] <0.7.0> Application lager started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.076 [info] <0.7.0> Application crypto started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.157 [info] <0.7.0> Application mimetypes started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.240 [info] <0.95.0> Starting Boss in development mode....
2015-04-22 23:31:06.257 [info] <0.95.0>@boss_db:start:77 Start Database Adapter boss_db_adapter_mock options [{adapter,mock},{cache_enable,false},{cache_prefix,db},{shards,[[{db_host,"localhost"},{db_adapter,mongodb},{db_port,27017},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database"},{db_shard_id,asksomething},{db_shard_models,[saved_client]}],[{db_host,"localhost"},{db_adapter,mock},{db_port,1978},{db_write_mode,safe},{db_read_mode,master},{db_name,"ask_database2"},{db_shard_id,asksomething2},{db_shard_models,[ip_database]}]]},{is_master_node,true}]
2015-04-22 23:31:06.355 [info] <0.7.0> Application mongodb started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.512 [info] <0.95.0> Starting master services on 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.544 [info] <0.7.0> Application tinymq started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.638 [info] <0.95.0> SSL:[]
2015-04-22 23:31:06.640 [info] <0.95.0> Starting cowboy... on 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.657 [info] <0.7.0> Application cowlib started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.684 [info] <0.7.0> Application ranch started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.762 [info] <0.7.0> Application cowboy started on node 'asksomething@mert-VirtualBox'
2015-04-22 23:31:06.762 [info] <0.95.0> Starting http listener... on
0.0.0.0:8001
2015-04-22 23:31:06.863 [info] <0.95.0>@boss_load:load_all_modules:57 Loading application asksomething
2015-04-22 23:31:06.893 [notice] <0.95.0>@boss_compiler:compile:47 Compile file "/home/mert/Desktop/asksomething/asksomething/src/websocket/asksomething_ask_service_websocket.erl" with options [{out_dir,undefined},{include_dirs,["/home/mert/Desktop/asksomething/asksomething/include"]},{compiler_options,[{parse_transform,lager_transform},return_errors]}]
2015-04-22 23:31:14.791 [info] <0.95.0>@boss_load:compile_view_dir_erlydtl:308 Compile Modules "src/view/lib/tag_html" asksomething_view_lib_tags
2015-04-22 23:31:15.076 [warning] <0.6.0> lager_error_logger_h dropped 19 messages in the last second that exceeded the limit of 50 messages/sec
2015-04-22 23:31:15.077 [notice] <0.95.0>@boss_compiler:compile:47 Compile file "/home/mert/Desktop/asksomething/asksomething/priv/init/ask_something_01_news.erl" with options [{include_dirs,["/home/mert/Desktop/asksomething/asksomething/include"]}]
Now i realized that production mode does not compile websocket. ( I am not sure but there is no websocket compile lines on prod)
Strange thing is, in production mode when i write init.sh stop i can see from my app on the browser that connection is down. It works fine in dev but there isnt any action in production mode. And also there is no errors :(
Can you please check?
Thanks for the support
Mert
22 Nisan 2015 Çarşamba 20:46:43 UTC+3 tarihinde Jesse Gumm yazdı: