-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
24 lines (19 loc) · 1.19 KB
/
startup.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
#!/bin/bash
set -e
echo "-------------------------------------------------------------------------------"
echo "-- Starting WebSocket Server Runner --"
echo "-------------------------------------------------------------------------------"
# Uncomment if you need to debug `bin/chat-server.php`
#bin/run.sh > /var/log/chat.log 2>&1 &
bin/run.sh &
echo "-------------------------------------------------------------------------------"
echo "-- Sleeping --"
echo "-------------------------------------------------------------------------------"
sleep 5
echo "-------------------------------------------------------------------------------"
echo "-- hitch --frontend=[*]:8443 --backend=[talk2mechat]:55000 /talk2me/cert.pem --"
echo "-------------------------------------------------------------------------------"
exec hitch --config=./hitch.conf
echo "-------------------------------------------------------------------------------"
echo "-- Done --"
echo "-------------------------------------------------------------------------------"