You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm deploying a rails app to a Hetzner vm and mount a volume to store my sqlite files on. The issue I'm having is that by default the folder on the host vm is owned by the root user while the rails app within the container is running with the rails user, which is resulting in an error that the db files cannot be written.
I can fix it by manually creating a rails user and group on the host vm and changing the ownership of the folder to this new rails user. While it works, I'm not super happy with this setup because now there is pre-configuration of a vm that I need to do before running Kamal setup. Did anyone experience the same issue and found a solution so that kamal works with a plain fresh linux vm?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all
I'm deploying a rails app to a Hetzner vm and mount a volume to store my sqlite files on. The issue I'm having is that by default the folder on the host vm is owned by the root user while the rails app within the container is running with the rails user, which is resulting in an error that the db files cannot be written.
I can fix it by manually creating a rails user and group on the host vm and changing the ownership of the folder to this new rails user. While it works, I'm not super happy with this setup because now there is pre-configuration of a vm that I need to do before running Kamal setup. Did anyone experience the same issue and found a solution so that kamal works with a plain fresh linux vm?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions