rbtrace and stackprof helpers added
authorSam <sam.saffron@gmail.com>
Tue, 23 Jan 2018 04:34:18 +0000 (15:34 +1100)
committerSam <sam.saffron@gmail.com>
Tue, 23 Jan 2018 04:34:18 +0000 (15:34 +1100)
templates/web.template.yml

index 316d835113ceadf1a4869956ba204017fdc9db6b..3996a36042356a7d2edf981c769a354394e41d6e 100644 (file)
@@ -199,6 +199,20 @@ run:
        #!/bin/bash
        (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec bin/rake "$@")
 
+  - file:
+     path: /usr/local/bin/rbtrace
+     chmod: +x
+     contents: |
+       #!/bin/bash
+       (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle rbtrace "$@")
+
+  - file:
+     path: /usr/local/bin/stackprof
+     chmod: +x
+     contents: |
+       #!/bin/bash
+       (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle stackprof "$@")
+
   - file:
      path: /etc/update-motd.d/10-web
      chmod: +x