From: Sam Date: Tue, 23 Jan 2018 04:34:18 +0000 (+1100) Subject: rbtrace and stackprof helpers added X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e95055205cd2df86dde35715e18d59207fe53fc5;p=discourse_docker.git rbtrace and stackprof helpers added --- 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