I have a problem with bundle install. I have a fresh droplet with Rails and Ubuntu. If I run as root:
I get the following message and my application breaks, start getting “Bad Gateway” errors from Nginx:
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
If I run bundle install as the rails user:
su rails bundle install
then I get this error:
sh: 1: bundle: not found
What am I missing? I’ve scoured the internet and tried every solution I can find and can’t get it working quite right.
Thanks for your help,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.