-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun
More file actions
executable file
·23 lines (15 loc) · 712 Bytes
/
run
File metadata and controls
executable file
·23 lines (15 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e
# bun run wind &
# python app.py
# assuming tmux is running
# run the first command in a split pane
# tmux split-window -h "bun run wind"
# for life compilation of tailwind
tmux split-window -v "bun run wind"
# bor automatic re-load in the browser (delay 800ms)
# tmux split-window -v "bun x browser-sync start --proxy 'localhost:5000' --no-open --no-notify --reload-delay 800 --files 'glamsage/static/**/*, glamsage/templates/**/*'"
tmux split-window -v "bun x browser-sync start --proxy 'localhost:5000' --no-open --no-notify 800 --files 'glamsage/static/**/*, glamsage/templates/**/*'"
while true; do
pipenv run python app.py || sleep 0.5 && echo "Trying to restart server..."
done