Skip to content

Commit 17e0e77

Browse files
committed
run.sh
1 parent 9bbddb6 commit 17e0e77

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
## Run it locally
66

7+
Install `node` and `npm`. (For NixOS, see `./*.nixos.sh` for convenience.)
8+
79
```
8-
npm install
9-
./build.sh
10-
node lib/server.js
10+
./run.sh
1111
```
1212

1313
To allow external device access: (Note: The security of this project has not been thoroughly audited. Use at your own risk.)

build.nixos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nix-shell --pure -p nodejs --run ./build.sh
1+
exec nix-shell --pure -p nodejs --run 'exec ./build.sh'

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm install && ./node_modules/.bin/tsc
1+
npm install && exec ./node_modules/.bin/tsc

run.nixos.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exec nix-shell --pure -p nodejs --run 'exec ./run.sh'

run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./build.sh && exec node lib/server.js

0 commit comments

Comments
 (0)