Skip to content

Commit 3515b88

Browse files
committed
Fix scripts for use with systemd
1 parent 3736cea commit 3515b88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ git checkout master
1212
git pull origin master
1313

1414
echo "Building app..."
15-
nix-build -A exe --no-out-link
15+
/home/webserver/.nix-profile/bin/nix-build -A exe --no-out-link
1616
rm -rf dist
1717
mkdir dist
18-
ln -s $(nix-build -A exe --no-out-link)/* dist/
18+
ln -s $(/home/webserver/.nix-profile/bin/nix-build -A exe --no-out-link)/* dist/
1919
cp -r config dist
2020
echo "App built in dist/"
2121

stopserver.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/sh
2-
ps -ef | grep ./backend | grep -v grep | awk '{print $2}' | sudo xargs -r kill -9
1+
#!/bin/bash
2+
pkill backend

0 commit comments

Comments
 (0)