-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·30 lines (20 loc) · 1.09 KB
/
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
# This is the main shell file to execute Xamboo. You may change and adapt this file to your own system.
# You may also call this file directly for the systemctl and enable a daemon to control the Xamboo
# Change this to your go basic dir if needed (if you will not use default one)
# export GOPATH=/home/sites/go
# Change this to your go binary dir if needed (if you will not use default one)
# export GOBIN=/home/sites/go/bin
# Change this to your go cache dir if needed (if you will not use default one)
# export GOCACHE=/home/sites/go/cache
# If you are running this script as a service, you will need a cd
# cd /home/sites/xamboo
# 1. Clean all .so if any
echo "Deletes all the old .so (they will be recompiled by Xamboo when needed)"
find . -name "*.so*" -exec rm {} \;
# 2. Run
echo "Starting the Xamboo"
go run xamboo.go --config=mainconfig.json --language=en
# If you compile to an executable, you may use this:
# ./xamboo --config=example/config.json
# If you run as a service you may add this
# go run xamboo.go --config=mainconfig.json --language=en >> /home/sites/xamboo/logs/xamboo.log 2>&1