From d55ac5332de2cb0d1abdd819857e5a5d996dc4b2 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 18 Aug 2024 12:09:39 +0100 Subject: [PATCH] Update build script --- run | 2 +- run.local | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/run b/run index 5c1148bc..81ad6a58 100755 --- a/run +++ b/run @@ -12,7 +12,7 @@ PATH="${PATH}:./vendor/bin" function generate { local args=() - if [[ "${APP_ENV:-}" == "production" ]]; then + if [[ "${APP_ENV:-}" == "prod" ]]; then args=(--env="prod") else args=(--server --watch) diff --git a/run.local b/run.local index 4d7af6a2..86fcc604 100755 --- a/run.local +++ b/run.local @@ -65,15 +65,15 @@ function npm:build:css { } function publish { - export NODE_ENV=production - export APP_ENV=production - - tag-release git push + tag-release + git push --tags git stash - clean + + export APP_ENV=prod + export NODE_ENV=production (cd assets && npm:build:css) generate