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]
This commit is contained in:
parent
6c1ebea633
commit
78986e6419
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue