forked from jeremyqzt/reversi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
27 lines (18 loc) · 950 Bytes
/
install.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
#!/bin/bash
kill $(pidof uwsgi)
cp systemd/*.service /lib/systemd/system
systemctl unmask nodeDb
systemctl enable nodeDb
systemctl start nodeDb
mkdir -p /etc/reversi
cp systemd/uwsgi_params /etc/reversi/
cp systemd/nginx.conf /etc/nginx/sites-available/reversi.conf
ln -sf /etc/nginx/sites-available/reversi.conf /etc/nginx/sites-enabled/
cd server/reversiServer/
/home/jeremyq357/.local/bin/uwsgi \
-s /home/jeremyq357/reversi/server/sockets/sock1 --module reversiServer.wsgi \
--disable-logging --static-map /=/home/jeremyq357/reversi/server/reversiServer/build --chmod-socket=666 --daemonize /var/log/reversi1.log
/home/jeremyq357/.local/bin/uwsgi \
-s /home/jeremyq357/reversi/server/sockets/sock2 --module reversiServer.wsgi \
--disable-logging --static-map /=/home/jeremyq357/reversi/server/reversiServer/build --chmod-socket=666 --daemonize /var/log/reversi2.log
systemctl reload nginx