Skip to content

Commit c225f63

Browse files
committed
tweak server deploy
1 parent 3c8733e commit c225f63

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/server_deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
git clone https://github.com/cs01/python-packaging-tools $HOME/webapps/python-packaging-tools || true
2222
cd $HOME/webapps/python-packaging-tools
2323
git reset --hard
24-
cd frontend
24+
cd $HOME/webapps/python-packaging-tools/frontend
2525
yarn
2626
yarn build
2727
2828
# reload and restart systemd service
29-
sudo cp scripts/python-packaging-tools.service /etc/systemd/system/python-packaging-tools.service
29+
sudo cp $HOME/webapps/python-packaging-tools/scripts/python-packaging-tools.service /etc/systemd/system/python-packaging-tools.service
3030
sudo systemctl daemon-reload
3131
sudo systemctl enable python-packaging-tools.service
3232
sudo systemctl restart python-packaging-tools

scripts/python-packaging-tools.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ After=network.target
66
[Service]
77
User=csmith
88
Group=www-data
9-
WorkingDirectory=$HOME/webapps/python-packaging-tools/backend
9+
WorkingDirectory=/home/csmith/webapps/python-packaging-tools/backend
1010
PermissionsStartOnly=true
11-
ExecStart=/bin/bash $HOME/webapps/python-packaging-tools/backend/start.sh
11+
ExecStart=/bin/bash /home/csmith/webapps/python-packaging-tools/backend/start.sh
1212
ExecStop=
1313
Restart=on-failure
1414
RestartSec=5s

0 commit comments

Comments
 (0)