Created
September 22, 2011 22:09
-
-
Save colindensem/1236196 to your computer and use it in GitHub Desktop.
ChicagoBoss Admin install Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a config guide to add the cb_admin to a sample application. | |
https://github.com/evanmiller/chicagoboss_admin | |
The dir structure is thus: | |
~/erlang/ | |
~/erlang/ChicagoBoss | |
~/erlang/cb_admin | |
~/erlang/mynewproject | |
Symlinks are ok, but those names for ChichageBoss and cb_admin must at this point in time exist. | |
Clone or download, I ran this of MASTER. | |
Assumption#1, you have a working ChicagoBoss, if not cd and make. | |
Assumption#2, you have a built and simple mynewproject application. | |
cd cb_admin && make | |
> erl -pa ebin/ -pa ../ChicagoBoss/ebin -eval 'boss_load:load_all_modules_and_emit_app_file(cb_admin, "ebin")' -s init stop -noshell | |
cd .. | |
Next step alter the configuration of boss.config and start-dev.sh to reflect the environment, path etc. | |
If all is well, running ./start-dev.sh should work, visit localhost:8001/admin | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{boss, [ | |
{applications, [mynewproject, cb_admin]}, | |
{db_host, "localhost"}, | |
{db_port, 1978}, | |
{db_adapter, mock}, | |
{log_dir, "log"}, | |
{server, mochiweb}, | |
{port, 8001}, | |
{session_adapter, mock}, | |
{session_key, "_boss_session"}, | |
{session_exp_time, 525600} | |
]}, | |
{ mynewproject, [ | |
{base_url, "/"} | |
]}, | |
{cb_admin, [ | |
{allow_ip_blocks, ["127.0.0.1"]}, | |
{base_url, "/admin"} | |
]} | |
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd `dirname $0` | |
exec erl -pa $PWD/ebin \ | |
-pa /Volumes/MASTER/home/username/erlang/ChicagoBoss/ebin \ | |
-pa /Volumes/MASTER/home/username/erlang/ChicagoBoss/deps/*/ebin \ | |
-pa /Volumes/MASTER/home/username/erlang/cb_admin/ebin \ | |
-boss developing_app mynewproject \ | |
-boot start_sasl -config boss -s reloader -s boss \ | |
-sname wildbill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment