Merge pull request #7488 from UpshiftNetwork/fix-assets-check-2
Fix: Check for asset precompilation when starting server
This commit is contained in:
commit
8b7a592112
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if assets are precompiled
|
# 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
|
then
|
||||||
fatal "You're running in production mode without having assets
|
fatal "You're running in production mode without having assets
|
||||||
precompiled. Now and after each update before you restart the
|
precompiled. Now and after each update before you restart the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue