Chan is right; in my case, I needed to force compilation with the command
./rebar boss c=compile and then it compiled and recognized the routes
successfully.

Thanks Chan and community.

On Thu, Jan 29, 2015 at 8:08 PM, chan sisowath <[email protected]>
wrote:

> hi,
> here an example of a config in production: you need to declare
> controller/view/mode/websocket into your boss.config or sys.config
> (release).
>
> here a config when i develop draw app with cb_admin as a sub app.
>
> https://github.com/mihawk/draw/blob/master/apps/draw/boss.config
>
> [{boss, [
>     {path, "../../deps/boss"},
>     {applications, [draw,cb_admin]},
>     {db_host, "192.168.188.81"},
>     {db_port, 1978},
>     {db_adapter, mock},
>     {log_dir, "log"},
>     {server, cowboy},
>     {port, 8001},
>     {session_adapter, mock},
>     {session_key, "_boss_session"},
>     {session_exp_time, 525600}
> ]},
> { draw, [
>     {path, "../draw"},
>     {base_url, "/"}
> ]},
> {cb_admin, [
>     {path, "../cb_admin"},
>     {allow_ip_blocks, ["127.0.0.1"]},
>     {base_url, "/admin"},
>     {model_modules, []},
>     {websocket_modules, []},
>     {controller_modules,[
>                          cb_admin_admin_controller,
>                          cb_admin_incoming_mail_controller,
>                          cb_admin_lang_controller,
>                          cb_admin_model_controller,
>                          cb_admin_outgoing_mail_controller,
>                          cb_admin_routes_controller,
>                          cb_admin_upgrade_controller
>                         ]},
>     {view_modules,[
>                    cb_admin_view_admin_access_denied_html,
>                    cb_admin_view_admin_index_html,
>                    cb_admin_view_admin_layouts_admin_html,
>                    cb_admin_view_admin_layouts_shared__alerts_html,
>                    cb_admin_view_admin_layouts_shared__main_menu_html,
>                    cb_admin_view_admin_layouts_shared__sidebar_html,
>                    cb_admin_view_admin_splash_html,
>                    cb_admin_view_lang_big_red_button_html,
>                    cb_admin_view_lang_create_html,
>                    cb_admin_view_lang_delete_html,
>                    cb_admin_view_lang_shared__lang_left_submenu_html,
>                    cb_admin_view_lang_shared__lang_right_submenu_html,
>                    cb_admin_view_lang_show_html,
>                    cb_admin_view_lib_tags,
>                    cb_admin_view_model_create_html,
>                    cb_admin_view_model_delete_html,
>                    cb_admin_view_model_edit_html,
>                    cb_admin_view_model_model_html,
>                    cb_admin_view_model_show_html,
>                    cb_admin_view_model_upload_html,
>                    cb_admin_view_routes_index_html,
>                    cb_admin_view_upgrade_upgrade_html
>                   ]}
> ]}
> ].
>
>
> here draw config in production mode:
> https://github.com/mihawk/draw/blob/master/rel/files/sys.config
>
> [{boss, [
>     {path, "../../deps/boss"},
>     {applications, [draw,cb_admin]},
>     %{db_host, "192.168.188.81"},
>     %{db_port, 1978},
>     %{db_adapter, mock},
>     {log_dir, "log"},
>     {server, cowboy},
>     {port, 8001},
>     {session_adapter, mock},
>     {session_key, "_boss_session"},
>     {session_exp_time, 525600}
>     %,{websocket_timeout, 5000}
> ]},
> { draw, [
>     {path, "../draw"},
>     {base_url, "/"},
>
> %%draw_custom_filters
> %%draw_custom_tags
> %%draw_view_lib_tags
>
>     {model_modules, []},
>     {websocket_modules, [
>                          draw_draw_protocol_websocket,
>                          draw_websocket_test_websocket
>                          ]},
>     {controller_modules,[
>                          draw_draw_controller,
>                          draw_incoming_mail_controller,
>                          draw_outgoing_mail_controller
>                          ]},
>     {view_modules,[draw_view_draw_index_html]}
> ]},
> {cb_admin, [
>     {path, "../cb_admin"},
>     {allow_ip_blocks, ["127.0.0.1"]},
>     {base_url, "/admin"},
>     {model_modules, []},
>     {websocket_modules, []},
>     {controller_modules,[
>                         cb_admin_admin_controller,
>                         cb_admin_incoming_mail_controller,
>                         cb_admin_lang_controller,
>                         cb_admin_model_controller,
>                         cb_admin_outgoing_mail_controller,
>                         cb_admin_routes_controller,
>                         cb_admin_upgrade_controller]},
>     {view_modules,[
>                         cb_admin_view_admin_access_denied_html,
>                         cb_admin_view_admin_index_html,
>                         cb_admin_view_admin_layouts_admin_html,
>                         cb_admin_view_admin_layouts_shared__alerts_html,
>                         cb_admin_view_admin_layouts_shared__main_menu_html,
>                         cb_admin_view_admin_layouts_shared__sidebar_html,
>                         cb_admin_view_admin_splash_html,
>                         cb_admin_view_lang_big_red_button_html,
>                         cb_admin_view_lang_create_html,
>                         cb_admin_view_lang_delete_html,
>                         cb_admin_view_lang_shared__lang_left_submenu_html,
>                         cb_admin_view_lang_shared__lang_right_submenu_html,
>                         cb_admin_view_lang_show_html,
>                         cb_admin_view_lib_tags,
>                         cb_admin_view_model_create_html,
>                         cb_admin_view_model_delete_html,
>                         cb_admin_view_model_edit_html,
>                         cb_admin_view_model_model_html,
>                         cb_admin_view_model_show_html,
>                         cb_admin_view_model_upload_html,
>                         cb_admin_view_routes_index_html,
>                         cb_admin_view_upgrade_upgrade_html
>                         ]}
> ]}
> ].
>
> you should look at the Makefile also
> https://github.com/mihawk/draw/blob/master/Makefile
> why this makefile
> i have noticed when you develop with multiple cbapp in the deps folder the
> compilation stop within the first cbapp.
>
>
>
>
>
> 2015-01-30 5:30 GMT+08:00 kotedo <[email protected]>:
>
>> LOL
>>  [image: View Kai Janson's profile on LinkedIn]
>> <http://www.linkedin.com/in/thejeeper>
>>
>> On Jan 29, 2015, at 16:29, emacstheviking <[email protected]> wrote:
>>
>> Let's get together and start a support group:
>>
>>     CB ATE MY ROUTES
>>
>> :)
>>
>>
>> On 29 January 2015 at 21:22, Miguel Benitez <[email protected]> wrote:
>>
>>> I'm having the EXACT SAME problem too, is this a bug?
>>>
>>> On Wed, Jan 28, 2015 at 5:33 PM, Dmitry Polyanovsky <
>>> [email protected]> wrote:
>>>
>>>> I seen problems with routes in dev mode against production mode only in
>>>> two cases:
>>>> * app directory renamed
>>>> * compilation stopped at some point and actually new routing is not
>>>> compiled (but yet working in dev mode)
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "ChicagoBoss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> Visit this group at http://groups.google.com/group/chicagoboss.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/chicagoboss/02b06116-87e0-448a-bb09-ea618409afe9%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/chicagoboss/02b06116-87e0-448a-bb09-ea618409afe9%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "ChicagoBoss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> Visit this group at http://groups.google.com/group/chicagoboss.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/chicagoboss/CAMz1aGr8onMQjogtu5C8rH-m_h0zP1V2sKa3iS9RfV8Yt6sBQQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/chicagoboss/CAMz1aGr8onMQjogtu5C8rH-m_h0zP1V2sKa3iS9RfV8Yt6sBQQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ChicagoBoss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> Visit this group at http://groups.google.com/group/chicagoboss.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/chicagoboss/CAEiEuULTHUwfb6vdko0vH94eB7KamaUz4hLt60g1fOeCPV50fA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/chicagoboss/CAEiEuULTHUwfb6vdko0vH94eB7KamaUz4hLt60g1fOeCPV50fA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "ChicagoBoss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> Visit this group at http://groups.google.com/group/chicagoboss.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/chicagoboss/260DF296-6DBD-4855-8E07-E1C41118489C%40gmail.com
>> <https://groups.google.com/d/msgid/chicagoboss/260DF296-6DBD-4855-8E07-E1C41118489C%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/CAB-Ofh%3DmavOums3RAJifq2Gr_Z2meab%2BiojtDpxKvosWuWdq8A%40mail.gmail.com
> <https://groups.google.com/d/msgid/chicagoboss/CAB-Ofh%3DmavOums3RAJifq2Gr_Z2meab%2BiojtDpxKvosWuWdq8A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CAMz1aGq2ULHFa3_%2BQL6MJS_%3Dw4smUXSynO_UGb22HE2RKD9G_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to