From e95055205cd2df86dde35715e18d59207fe53fc5 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 23 Jan 2018 15:34:18 +1100 Subject: [PATCH] rbtrace and stackprof helpers added --- templates/web.template.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index 316d835..3996a36 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -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 -- 2.25.1