Browse Source

Fix config being cached too early in the build process.

pull/3911/head
Jamie Taylor 8 months ago
parent
commit
49c2609570
No account linked to committer's email address
2 changed files with 8 additions and 6 deletions
  1. 0
    6
      build.sh
  2. 8
    0
      deploy.sh

+ 0
- 6
build.sh View File

@@ -39,12 +39,6 @@ php artisan passport:keys
39 39
 php artisan lang:js resources/assets/js/messages.js
40 40
 php artisan laroute:generate
41 41
 
42
-if [ ! "${APP_DEBUG:-false}" = "true" ]
43
-then
44
-  php artisan config:cache
45
-  php artisan route:cache
46
-fi
47
-
48 42
 command -v yarn || npm install -g yarn
49 43
 yarn
50 44
 yarn run production

+ 8
- 0
deploy.sh View File

@@ -9,3 +9,11 @@ mkdir -p "$outdir"
9 9
 cp -pr ./ "$outdir"
10 10
 
11 11
 ln -snf "$outdir" "/deploy/current"
12
+
13
+cd "$outdir"
14
+
15
+if [ ! "${APP_DEBUG:-false}" = "true" ]
16
+then
17
+  php artisan config:cache
18
+  php artisan route:cache
19
+fi

Loading…
Cancel
Save