-
Notifications
You must be signed in to change notification settings - Fork 6
/
start.sh
executable file
·30 lines (27 loc) · 1010 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
export NITROGEN_SRC=./deps/nitrogen
export RIAK_SRC=./deps/riak
export MOCHIWEB_SRC=./deps/riak/deps/webmachine/deps/mochiweb
cd `dirname $0`
echo Creating link to nitrogen support files...
rm -rf wwwroot/nitrogen
ln -s ../$NITROGEN_SRC/www wwwroot/nitrogen
echo Setting to 2048 open file descriptors...
ulimit -n 2048
while [ ! -f stop ]; do
echo Starting SlideBlast.com Server...
erl \
-name [email protected] \
-pa $PWD/apps $PWD/ebin $PWD/include \
-pa $NITROGEN_SRC/ebin $NITROGEN_SRC/include \
-pa $NITROGEN_SRC/deps/*/ebin $NITROGEN_SRC/deps/*/include \
-pa $RIAK_SRC/ebin $RIAK_SRC/include \
-pa $RIAK_SRC/deps/*/ebin $RIAK_SRC/deps/*/include \
-pa $MOCHIWEB_SRC/ebin $MOCHIWEB_SRC/include \
-pa $MOCHIWEB_SRC/deps/*/ebin $MOCHIWEB_SRC/deps/*/include \
-s make all \
-simple_bridge_max_post_size 10 \
-eval "application:start(sasl)" \
-eval "application:start(crypto)" \
-eval "application:start(caster)"
done