DEV: Add missing discourse script to docker dev

DEV: Add missing discourse script to docker dev

diff --git a/bin/docker/discourse b/bin/docker/discourse
new file mode 100755
index 0000000..3ae9852
--- /dev/null
+++ b/bin/docker/discourse
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+PARAMS="$@"
+CMD="cd /src && USER=discourse RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 LD_PRELOAD=/usr/lib/libjemalloc.so RAILS_ENV=${RAILS_ENV:=development} script/discourse $PARAMS"
+docker exec -it -u discourse:discourse discourse_dev /bin/bash -c "$CMD"

GitHub sha: 77d94770

1 Like