[#44] Fej can now easily startup a Vite development server

pull/53/head
Jef Roosens 2021-04-29 10:23:07 +02:00
parent 0055667877
commit 628a918682
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 3 additions and 0 deletions

3
fejctl
View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
image='chewingbever/fej'
web_dir='web'
# Small wrapper around the docker-compose command
#
@ -98,10 +99,12 @@ function main() {
# Building
b | build ) dcr build --bin "$bin" && dc -- logs -f app ;;
br | build-release ) dc -br build ;;
bf | build-frontend ) cd "$web_dir" && yarn run build ;;
# Running
r | run ) dcr run --bin "$bin" && dc -- logs -f app ;;
rr | run-release ) dc -br -- up --build --detach && dc -r -- logs -f app ;;
rf | run-frontend ) dcr run --bin server && cd "$web_dir" && yarn run dev ;;
s | stop ) dc down ;;
sr | stop-release ) dc -r stop ;;