Merge pull request #7488 from UpshiftNetwork/fix-assets-check-2

Fix: Check for asset precompilation when starting server
This commit is contained in:
Benjamin Neff 2017-07-14 00:11:11 +02:00
commit 8b7a592112
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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