Use before_restart hook for assets:precompile