bundler Rails with user problem

Asked

Viewed 52 times

1

Hello, I have a drop on digitalocean, and installed ruby on Rails through the main panel, I can’t use the bundler via upstart or cron , he says that the user does not have the bundler, but when access via ssh I can do everything normally. ex: Bundle exec....

I don’t know what’s going on, I tried to spin

sudo -su root Bundle exec .....

or

sudo -su Rails Bundle exec .....

but not da, as I do to run the bundler with the same features q I use via ssh?

  • You run the bundler via ssh with the sudo user?

  • What error appears?

  • Run bundle install to install Missing Gems.

  • only that the user is the current user of ustart knows... in one know very well how to deal with it

  • Analyzing from outside I would think something related to user ENV that you are using in your application type /home/rails and it seems that sudo is not loading this user’s ENV. Such using RVM or RBENV?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.