Skip to content

Commit 7b0e4b4

Browse files
dev: add user-installed gems to PATH (#833)
This is important for usability of things like discourse_theme, and editor tooling (e.g. ruby-lsp)
1 parent 8aff5b6 commit 7b0e4b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

image/discourse_dev/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ ADD sudoers.discourse /etc/sudoers.d/discourse
1212

1313
RUN sudo -u discourse bundle config set --global path /home/discourse/.bundle/gems
1414

15+
# Add user-install ruby gems to PATH
16+
RUN echo 'PATH="$(ruby -r rubygems -e "puts Gem.user_dir")/bin:$PATH"' >> /home/discourse/.profile
17+
1518
# get redis going
1619
ADD redis.template.yml /pups/redis.yml
1720
RUN /pups/bin/pups /pups/redis.yml

0 commit comments

Comments
 (0)