summaryrefslogtreecommitdiffstats
path: root/start
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2023-04-12 10:36:33 +0200
committerMaksymilian Jopek <maks@jopek.eu>2023-04-12 10:36:33 +0200
commitf056c29fd5c331c88fbd432db01474c63fb0edad (patch)
tree13ffe140153ebf7d629d0067078c7b4caadcff05 /start
parent261a7ac22a6027e024aa12efb35cbeaac67fad59 (diff)
downloadalahelo-madio-master.tar.gz
alahelo-madio-master.tar.zst
alahelo-madio-master.zip
Change start scriptHEADmaster
Diffstat (limited to 'start')
-rwxr-xr-xstart13
1 files changed, 5 insertions, 8 deletions
diff --git a/start b/start
index 929beae..05ff5c6 100755
--- a/start
+++ b/start
@@ -1,9 +1,6 @@
#!/bin/sh
-npm run dev &
-npm_pid="$(echo $!)"
-php -S 0.0.0.0:8000 &
-php_pid="$(echo $!)"
-
-echo "Click anything to stop"
-read t
-kill $php_pid $npm_pid
+open_in_terminal() {
+ st -e sh -c "cd $(pwd); $1"
+}
+open_in_terminal 'npm run dev' &
+open_in_terminal 'php -S 0.0.0.0:8000' &