mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Added .json config file to installation.
This commit is contained in:
parent
d6fd31c239
commit
c9df3e23ec
3 changed files with 12 additions and 1 deletions
5
services/git-bridge/bin/config.json
Normal file
5
services/git-bridge/bin/config.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"port": 80,
|
||||
"rootGitDirectory": "/var/wlgb/git",
|
||||
"apiKey": ""
|
||||
}
|
|
@ -57,6 +57,10 @@ do_start()
|
|||
start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- \
|
||||
$DAEMON_ARGS >> /var/log/wlgb/out.log 2>> /var/log/err.log &
|
||||
echo "WriteLatex-Git Bridge started."
|
||||
echo "Config file at /etc/wlgb/config.json"
|
||||
echo "Log file at /var/log/wlgb/out.log"
|
||||
echo "Error file at /var/log/err.log"
|
||||
echo
|
||||
return 0
|
||||
# Add code here, if necessary, that waits for the process to be ready
|
||||
# to handle requests from services started subsequently which depend
|
||||
|
|
|
@ -6,5 +6,7 @@ command -v ant >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/b
|
|||
ant all &&\
|
||||
mv ./bin/writelatex-git-bridge.jar /usr/local/sbin/ &&\
|
||||
cp ./bin/wlgb /etc/init.d/ &&\
|
||||
mkdir /var/log/wlgb
|
||||
mkdir /var/log/wlgb &&\
|
||||
mkdir /etc/wlgb
|
||||
cp ./bin/config.json /etc/wlgb/
|
||||
/usr/sbin/update-rc.d -f wlgb defaults
|
||||
|
|
Loading…
Reference in a new issue