Ensure /shared/log/rails is owned by discourse user
authorMichael Brown <michael.brown@discourse.org>
Thu, 24 Jul 2014 18:03:27 +0000 (14:03 -0400)
committerMichael Brown <michael.brown@discourse.org>
Thu, 24 Jul 2014 18:03:27 +0000 (14:03 -0400)
templates/web.template.yml

index 063e79ecf6de3ffe59b95b17c234fa113a70dd3c..84a699e700c1df356e0db593869d55b530839cc1 100644 (file)
@@ -49,6 +49,7 @@ run:
         # postgres
         sv start copy_env || exit 1
         cd $home
+        chown -R discourse:www-data /shared/log/rails
         exec sudo -E -u discourse LD_PRELOAD=/usr/lib/libjemalloc.so.1 bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb
 
   - file: