pull logs and uploads out of image
authorSam Saffron <sam.saffron@gmail.com>
Mon, 4 Nov 2013 05:32:25 +0000 (21:32 -0800)
committerSam Saffron <sam.saffron@gmail.com>
Mon, 4 Nov 2013 05:32:25 +0000 (21:32 -0800)
standalone.template.yml

index 4e67e6e3bd245d3609eaf617ecff415ad13b121e..45c25d423a67ce0be232116dff46d9fe19a31799 100644 (file)
@@ -103,7 +103,13 @@ run:
         - cp config/environments/production.rb.sample config/environments/production.rb
         - mkdir -p tmp/pids
         - mkdir -p tmp/sockets
-        - mkdir -p log
+        - mkdir -p /shared/log/rails
+        - rm -r log
+        - ln -s /shared/log/rails $home/log
+        - mkdir -p /shared/uploads
+        - ln -s /shared/uploads $home/public/uploads
+        - chown -R discourse /shared/uploads
+        - chown -R discourse /shared/log/rails
   - exec:
       cmd:
         - mkdir -p /var/run/sshd