ComboStrikeHQ / docker-rails

An opinionated docker image for running Rails apps in production.
MIT License
89 stars 17 forks source link

Set user env when running as user with chpst #35

Closed tsujigiri closed 5 years ago

tsujigiri commented 5 years ago

One of our projects looks up a file in the user's $HOME, which is set to /root when chpst is run with -u $USER, which makes it fail, because the user doesn't have permission to read anything in there. I changed it, so we run those commands with -U $USER instead, so the user's $HOME is set properly. At the same time I had to adapt the test to the latest Rails version, which is why this pull-request got slightly bigger.