April 20

1 comments

Use whoami to check before running bundle install so you don’t run it as root

By Christopher Mendla

April 20, 2016


Last Updated on November 30, 2019 by Christopher G Mendla

I screwed up my droplet (ruby on rails) on my digitalocean hosting by running bundle install as root. When you do that, there is a warning that this will break rails for other users. I haven’t taken the time to figure out how to fix that. Since I was getting started with that hosting, I decided to simply delete the existing droplet and recreate it.

However, since I do need to use root from time to time, I made it a standard procedure to always run whoami before running any bundle commands. That way, I can make sure I am logged in as rails and not root.

Christopher Mendla

About the author

Leave a Reply

Your email address will not be published. Required fields are marked

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}