diff options
author | Finn Woelm <public@finnwoelm.com> | 2017-07-13 16:20:14 +0300 |
---|---|---|
committer | Finn Woelm <public@finnwoelm.com> | 2017-07-13 17:41:11 +0300 |
commit | 78986e6419e39ede4f216b2ea27175fcf71c5307 (patch) | |
tree | a0516744cf66799fd731fdd00e9386f261e66990 /script | |
parent | 6c1ebea6331f83b24e29b0e41404217b98ee3ea5 (diff) |
Fix: Check for asset precompilation when starting server
When `public/assets/` is a symlink, running `find public/assets ...`
does not return the correct result. By using `public/assets/`, find is
able to return the correct result regardless of whether the folder is an
actual folder or a symlink.
[ci skip]
Diffstat (limited to 'script')
-rwxr-xr-x | script/server | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/server b/script/server index 715697d44..46b492353 100755 --- a/script/server +++ b/script/server @@ -150,7 +150,7 @@ then fi # Check if assets are precompiled -if [ "$RAILS_ENV" = "production" -a -z "$(find public/assets -maxdepth 1 -name 'main-*.js' -print -quit 2>/dev/null)" ] +if [ "$RAILS_ENV" = "production" -a -z "$(find public/assets/ -maxdepth 1 -name 'main-*.js' -print -quit 2>/dev/null)" ] then fatal "You're running in production mode without having assets precompiled. Now and after each update before you restart the |