Hi,
I setup ChicagoBoss 8.12 on FreeBSD 10.0 with Erlang 17.3. I am following the ChicagoBoss evening tutorial.
After installed evening, it works.
After install cb_admin, I get a 404 error. I think it is because I am accessing it from another computer. My ChicagoBoss is installed on 192.168.0.1. I am trying to access it from 192.168.0.3.
http://192.168.0.1/greeting/index works.
http://192.168.0.1/admin display:
No routes matched the requested URL. Additionally, no handler was found for processing 404 errors. You probably want to modify /usr/local/evening/priv/evening.routes to prevent errors like this one.crash.log is like this:
2014-10-09 23:03:31 =ERROR REPORT====
GET /admin [evening] 404 0ms
error.log is like this:
2014-10-09 23:03:31.323 [error] <0.272.0> GET /admin [evening] 404 0ms
console is like this:
2014-10-09 22:40:55.495 [info] <0.7.0> Application lager started on node evening@www
2014-10-09 22:40:55.501 [info] <0.7.0> Application crypto started on node evening@www
2014-10-09 22:40:55.511 [info] <0.7.0> Application mimetypes started on node evening@www
2014-10-09 22:40:55.540 [info] <0.94.0> Starting Boss in development mode....
2014-10-09 22:40:55.547 [info] <0.94.0>@boss_db:start:72 Start Database Adapter boss_db_adapter_mock options [{adapter,mock},{cache_enable,false},{cache_prefix,db},{shards,[]},{is_master_node,true},{db_host,
"localhost"},{db_port,1978}]
2014-10-09 22:40:55.583 [info] <0.94.0> Starting master services on evening@www
2014-10-09 22:40:55.594 [info] <0.7.0> Application tinymq started on node evening@www
2014-10-09 22:40:55.665 [info] <0.94.0> SSL:[]
2014-10-09 22:40:55.668 [info] <0.94.0> Starting cowboy... on evening@www
2014-10-09 22:40:55.671 [info] <0.7.0> Application cowlib started on node evening@www
2014-10-09 22:40:55.674 [info] <0.7.0> Application ranch started on node evening@www
2014-10-09 22:40:55.684 [info] <0.7.0> Application cowboy started on node evening@www
2014-10-09 22:40:55.684 [info] <0.94.0> Starting http listener... on
0.0.0.0:80012014-10-09 22:40:55.727 [info] <0.94.0>@boss_load:load_all_modules:57 Loading application evening
2014-10-09 22:40:55.749 [notice] <0.94.0>@boss_compiler:compile:47 Compile file "/usr/local/evening/src/model/greeting.erl" with options [debug_info,{pre_revert_transform,#Fun<boss_record_compiler.trick_out_
forms.2>},{token_transform,#Fun<boss_record_compiler.process_tokens.1>},{out_dir,undefined},{include_dirs,["/usr/local/evening/include"]},{compiler_options,[{parse_transform,lager_transform},return_errors]}]
2014-10-09 22:40:55.749 [info] <0.94.0>@boss_record_compiler:process_tokens:120 Tokens [{'-',{1,1}},{atom,{1,2},module},{'(',{1,8}},{atom,{1,9},greeting},{',',{1,17}},{'[',{1,19}},{var,{1,20},'Id'},{',',{1,2
2}},{var,{1,24},'GreetingText'},{']',{1,36}},{')',{1,37}},{dot,{1,38}},{'-',{2,1}},{atom,{2,2},compile},{'(',{2,9}},{atom,{2,10},export_all},{')',{2,20}},{dot,{2,21}},{eof,{3,1}}]
2014-10-09 22:40:55.756 [notice] <0.94.0>@boss_record_compiler:make_generated_forms:225 Module "greeting" Parameters ['Id','GreetingText'] Attributes[{compile,export_all}]
2014-10-09 22:40:55.763 [notice] <0.62.0>@lager_app:132 Deprecated lager_file_backend config detected, please consider updating it
2014-10-09 22:40:55.787 [info] <0.94.0>@boss_load:compile_view_dir_erlydtl:311 Compile Modules "src/view/lib/tag_html" evening_view_lib_tags
2014-10-09 22:40:55.822 [notice] <0.94.0>@boss_compiler:compile:47 Compile file "/usr/local/evening/priv/init/evening_01_news.erl" with options [{include_dirs,["/usr/local/evening/include"]}]
2014-10-09 22:41:05.591 [notice] <0.269.0>@boss_web_controller_handle_request:handle_request:23 ApplicationForPath evening
2014-10-09 22:41:05.593 [warning] <0.6.0> lager_error_logger_h dropped 71 messages in the last second that exceeded the limit of 50 messages/sec
2014-10-09 22:41:05.593 [info] <0.262.0> Loading routes from "/usr/local/evening/priv/evening.routes" ....
2014-10-09 22:41:05.605 [notice] <0.269.0>@boss_controller_adapter_pmod:action:91 Request Method 'GET'
2014-10-09 22:41:05.605 [notice] <0.269.0>@boss_controller_adapter_pmod:action:92 Tokens []
2014-10-09 22:41:05.609 [info] <0.269.0> GET /greeting/index [evening] 200 0ms
2014-10-09 23:03:31.321 [notice] <0.272.0>@boss_web_controller_handle_request:handle_request:23 ApplicationForPath evening
2014-10-09 23:03:31.322 [info] <0.262.0> Loading routes from "/usr/local/evening/priv/evening.routes" ....
2014-10-09 23:03:31.323 [error] <0.272.0> GET /admin [evening] 404 0ms
2014-10-09 23:03:31.460 [notice] <0.273.0>@boss_web_controller_handle_request:handle_request:23 ApplicationForPath evening
2014-10-09 23:03:31.460 [info] <0.262.0> Loading routes from "/usr/local/evening/priv/evening.routes" ....
2014-10-09 23:03:31.461 [error] <0.273.0> GET /admin [evening] 404 0ms
Thanks!