Can I get separate database settings for multiple chicagoboss applications running from one instance?

22 views
Skip to first unread message

Robert Swirsky

unread,
Feb 17, 2016, 7:33:27 PM2/17/16
to ChicagoBoss
ChicagoBoss allows for included applications to have their own domains ("virtual hosts").

Is it possible for each of these included applications to have their own database settings? The settings in the individual boss.config files, which run fine when started stand-alone, don't seem to be picked up when I start multiple chicago boss applications from one master boss.config file.

I need separate db names, username, password for each included application.

Graeme Defty

unread,
Feb 17, 2016, 11:09:58 PM2/17/16
to chica...@googlegroups.com
Hi Robert

I have never tried using shards myself, but it may be worth a look. It could provide you with the separation you need.

Graeme
> --
> 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 chicagoboss...@googlegroups.com.
> Visit this group at https://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/cc30c86e-2b8e-43ed-9b5a-243c874402c9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

swi...@gmail.com

unread,
Feb 18, 2016, 6:32:07 PM2/18/16
to ChicagoBoss
Thanks! I just found that thread, too. I will try something like this


{applications, [research, cb_admin]},
{ db_shards,

[
[
{db_host, "localhost"},
{db_adapter, mysql},
{db_port, 3306},
{db_username, "root"},
{db_password, ""},
{db_database, "prod_bronx"},
{db_shard_models, [sales, cities]}
],
[
{db_host, "thexyzxyz.net"},
{db_adapter, mongodb},
{db_database, research},
{db_write_mode, safe},
{db_read_mode, master},
{db_shard_models, [objectives, criterias, candidates]}
]
]
},
{log_dir, "log"},
Reply all
Reply to author
Forward
0 new messages