forked from SaitoTech/saito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile
executable file
·56 lines (46 loc) · 1.4 KB
/
compile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
rm -f saito/web/client.options
rm -f remixtmp.js
rm -f saito/web/browser.js.gz
rm -f data/database.sq3
rm -f data/log.txt
rm -f data/*.sq3-journal
rm -f data/registry.sq3
rm -f data/blocks/*.blk
rm -f data/blocks/*.zip
rm -f data/blocks/*.segadd
rm -f data/tmp/*.blk
rm -f data/tmp/*.zip
rm -f options
rm -f modules/mod/registry/web/addresses.txt
rm -f logs/*
cp options.conf options
./../node_modules/.bin/browserify browser.js -o saito/web/browser.js -i express -i sqlite3 -i express-basic-auth -i sendgrid -i request -i bluebird -i socket.io -i phantomjs -i express-fileupload -i body-parser -i shashmap -i http -i http-proxy -i simple-socks -i unzip -i node-zip -i shelljs -i keythereum -i ethereumjs-util -i crx
# -i winston -i winston-daily-rotate-file
for d in modules/mods/* ; do
if [ -f $d/compile ] ; then
chmod +x $d/compile
$d/compile
fi
done
#cd saito/web
#gzip -k browser.js
#./compile
#cd ../../
echo ""
echo "///////////////"
echo "// IMPORTANT //"
echo "///////////////"
echo "please confirm your \"options\" file is properly configured. "
echo "The simplest version that will work for a local install without"
echo "support for built-in DNS or message-archiving is: "
echo ""
echo "{"
echo "\"server\":{\"host\":\"localhost\",\"port\":12101,\"publickey\":\"\"}"
echo "}"
echo ""
echo ""
echo "once that is done, you can start Saito by running: "
echo ""
echo "$> node start.js "
echo ""
echo ""