script/server: check for main.js instead of home.css

This commit is contained in:
Jonne Haß 2016-06-26 13:00:29 +02:00
parent f1f7c41eda
commit 266ada3f24
No known key found for this signature in database
GPG key ID: F347E0EB47AC70D6

View file

@ -162,7 +162,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 'home-*.css' -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