Skip to content

Commit

Permalink
sync support (online re-compile)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Galeev authored and Roman Galeev committed May 24, 2016
1 parent f91bca0 commit 3fdf562
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion make/deps.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEPS = lager eiconv gen_smtp amqp_client cowboy jesse jiffy certifi couchbeam wsock zucchini \
erlsom erlydtl exml escalus folsom detergent erlang_localtime \
nklib gproc poolboy syslog lager_syslog eflame hep ecsv reloader \
proper recon getopt
proper recon getopt sync eunit

BUILD_DEPS = parse_trans

Expand Down
6 changes: 6 additions & 0 deletions rel/sys.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[
{sync, [
{src_dirs, {replace, [
{"../../applications", []},
{"../../core", []}
]}}
]},
{lager, [
{handlers, [
{lager_console_backend, info}
Expand Down
25 changes: 25 additions & 0 deletions scripts/start-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh
# this script should be run from kazoo repository clone root

if [ "$KAZOO_CONFIG" = "" ]
then
export KAZOO_CONFIG=$PWD/config.ini
fi

if [ "$KAZOO_NODE" = "" ]
then
KAZOO_NODE=kazoo@localhost
fi

CMD=$1
if [ "$CMD" = "" ]
then
CMD=console
fi

# some modules get compiled to this path by sync
export ERL_LIBS=_rel/kazoo

make build-dev-release

RELX_REPLACE_OS_VARS=true KZname="-name $KAZOO_NODE" _rel/kazoo/bin/kazoo $CMD

0 comments on commit 3fdf562

Please sign in to comment.