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)
This commit is contained in:
parent
8aff5b6588
commit
7b0e4b45b5
|
@ -12,6 +12,9 @@ ADD sudoers.discourse /etc/sudoers.d/discourse
|
|||
|
||||
RUN sudo -u discourse bundle config set --global path /home/discourse/.bundle/gems
|
||||
|
||||
# Add user-install ruby gems to PATH
|
||||
RUN echo 'PATH="$(ruby -r rubygems -e "puts Gem.user_dir")/bin:$PATH"' >> /home/discourse/.profile
|
||||
|
||||
# get redis going
|
||||
ADD redis.template.yml /pups/redis.yml
|
||||
RUN /pups/bin/pups /pups/redis.yml
|
||||
|
|
Loading…
Reference in New Issue