From 628a918682afd68702efb6807fa2c484a36a7d6d Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Thu, 29 Apr 2021 10:23:07 +0200 Subject: [PATCH] [#44] Fej can now easily startup a Vite development server --- fejctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fejctl b/fejctl index 6f5c8a9..57f7443 100755 --- a/fejctl +++ b/fejctl @@ -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 ;;