Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding cb_admin to current ChicagoBoss installation #47

Open
kkoci opened this issue Oct 2, 2016 · 3 comments
Open

Adding cb_admin to current ChicagoBoss installation #47

kkoci opened this issue Oct 2, 2016 · 3 comments

Comments

@kkoci
Copy link

kkoci commented Oct 2, 2016

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

@braveh4rt
Copy link

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

@keithmanilla
Copy link

keithmanilla commented Oct 5, 2017

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"}
]}].

@kkoci
Copy link
Author

kkoci commented Oct 5, 2017

Gonna try it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants