Skip to content

Commit a84d3f9

Browse files
Install Gunicorn socket
1 parent d75a0f4 commit a84d3f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deploy.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
# Clone the repository
1010
# git clone [email protected]:RSE-Sheffield/SORT.git
1111
# cd SORT
12-
# sudo bash deploy.sh
12+
# sudo bash -x deploy.sh
1313

1414
# Options
1515
sort_dir="/opt/sort"
@@ -18,7 +18,7 @@ pip="$venv_dir/bin/pip"
1818
python_version="python3.12"
1919

2020
# Create Python virtual environment
21-
apt update
21+
apt update -qq
2222
apt install --yes -qq "$python_version" "$python_version-venv"
2323
python3 -m venv "$venv_dir"
2424

@@ -28,6 +28,7 @@ cp --recursive * "$sort_dir/"
2828

2929
# Install Gunicorn service
3030
cp --verbose config/systemd/gunicorn.service /etc/systemd/system/gunicorn.service
31+
cp --verbose config/systemd/gunicorn.socket /etc/systemd/system/gunicorn.socket
3132

3233
# Install web reverse proxy server
3334
# Install nginx

0 commit comments

Comments
 (0)