Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorFinn Woelm <public@finnwoelm.com>2017-07-13 16:20:14 +0300
committerFinn Woelm <public@finnwoelm.com>2017-07-13 17:41:11 +0300
commit78986e6419e39ede4f216b2ea27175fcf71c5307 (patch)
treea0516744cf66799fd731fdd00e9386f261e66990 /script
parent6c1ebea6331f83b24e29b0e41404217b98ee3ea5 (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-xscript/server2
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