cb_admin icon indicating copy to clipboard operation
cb_admin copied to clipboard

Adding cb_admin to current ChicagoBoss installation

Open kkoci opened this issue 9 years ago • 3 comments

I just installed ChicagoBoss following the github instructions.

Then, I created a project:

make make app PROJECT=myproject cd ../myproject

Everything's cool so far, now, I want to add the admin interface such as cb_admin, so I add to myproject rebar.conf this line {cb_admin, ".*", {git, "git://github.com/ChicagoBoss/cb_admin.git", "HEAD"}} so it will become:

{deps, [ {boss, ".", {git, "https://github.com/ChicagoBoss/ChicagoBoss.git", {tag, "v0.9.beta-1"}}} {cb_admin, ".", {git, "git://github.com/ChicagoBoss/cb_admin.git", "HEAD"}} ]}. {plugin_dir, ["priv/rebar"]}. {plugins, [boss_plugin]}. {eunit_compile_opts, [{src_dirs, ["src/test"]}]}. {lib_dirs, ["../ChicagoBoss/deps/elixir/lib"]}.

So I run ./rebar get-deps compile, but it keeps throwing me this error:

ERROR: Failed to load /home/kristian/erlang-projects/myproject /rebar.config: {error, {3, erl_parse, ["syntax error before: ", "'{'"]}}

Please, anybody has an idea about this?

My erlang version is 19

Thanks in advance

kkoci avatar Oct 02 '16 02:10 kkoci

I have the same issue also.

I follow the tutorial here : https://github.com/ChicagoBoss/ChicagoBoss/wiki/an-evening-with-chicago-boss

and when adding cb_admin part, it not compile and give error :

FATAL: Config file "boss.config" has a syntax error on line 13, 98

on line 13 in boss.config :

[{boss, [ {path, "./deps/boss"}, {applications, [evening, cb_admin]}, %this one makes error {assume_locale, "en"},

and add below :

{ cb_admin, [ {path: "../cb_admin"}, {allow_ip_blocks, ["127.0.0.1"]}, {base_url, "/admin"}, {dummy, true} ]}

My version :

Erlang/OTP 17 [erts-6.4.1] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false] ChicagoBoss is latest 0.9.pre-alpha-2

anyone care to give direction?

Thanks

braveh4rt avatar Oct 27 '16 09:10 braveh4rt

Top part

%% vim: ts=4 sw=4 et ft=erlang
%%%
%%% CHICAGO BOSS PROJECT SKELETON
%%%
%%% This file can be modified by you to avoid you needing to reenter
%%% defaults when creating new projects.  For full configuration
%%% details, please visit
%%% https://github.com/ChicagoBoss/ChicagoBoss/wiki/Configuration

%%% When running tests, you may want to create a separate configuration file
%%% "boss.test.config" which, if present, will be read instead of boss.config.


[{boss, [
    {path, "./deps/boss"},
    {applications, [cb_admin, myapp]},
    {assume_locale, "en"},

while on the bottom part...

{ myapp, [
    {path, "../myapp"},
    {base_url, "/"},
%    {domains, all},
%    {static_prefix, "/static"},
%    {doc_prefix, "/doc"},

    {dummy, true}
]},

{cb_admin, [
    {path, "./deps/cb_admin"},
    {allow_ip_blocks, ["127.0.0.1"]},
    {base_url, "/admin"}
]}].

keithmanilla avatar Oct 05 '17 19:10 keithmanilla

Gonna try it, thanks

kkoci avatar Oct 05 '17 19:10 kkoci