If I switch to the predefined user ‘rails’ and try to run ‘rails console’ it gives me this permission error:
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir’: Permission denied @ dir_s_mkdir - /run/user/0/spring-1000 (Errno::EACCES)
if I try to log in as root it tells me that it can’t authenticate with the database. I get that; the environment variable is only set for the Rails user.
Am I not missing something or does this seem like a flaw in the design?
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!
i know this is old, but for someone doing a research, you should try running “rails console production” instead of “rails console” only.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.