fix stupid heredoc usage in script/server
This commit is contained in:
parent
619ffa9d74
commit
5760f177ea
1 changed files with 7 additions and 10 deletions
|
|
@ -18,7 +18,7 @@ on_failure()
|
|||
{
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
fatal $1
|
||||
fatal "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -108,10 +108,8 @@ then
|
|||
branch=$(git branch | awk '/^[*]/ {print $2}')
|
||||
tar czf public/source.tar.gz $(git ls-tree -r $branch | awk '{print $4}')
|
||||
else
|
||||
fatal <<MSG
|
||||
Can't generate public/source.tar.gz for you. Please tar up a copy of
|
||||
your Diaspora installtion and place it there.
|
||||
MSG
|
||||
fatal "Can't generate public/source.tar.gz for you.
|
||||
Please tar up a copy of your Diaspora installtion and place it there."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
@ -123,11 +121,10 @@ fi
|
|||
# Check if assets are precompiled
|
||||
if [ "$RAILS_ENV" = "production" -a ! -e "public/assets/default.css" ]
|
||||
then
|
||||
fatal <<MSG
|
||||
You're running in production mode without having assets precompiled.
|
||||
Now and after each update before you restart the application, run:
|
||||
bundle exec rake assets:precompile
|
||||
MSG
|
||||
fatal "You're running in production mode without having assets
|
||||
precompiled. Now and after each update before you restart the
|
||||
application, run:
|
||||
bundle exec rake assets:precompile"
|
||||
fi
|
||||
|
||||
# Start Diaspora
|
||||
|
|
|
|||
Loading…
Reference in a new issue