A
A
Alexander Petrov2019-02-03 20:24:20
Ruby on Rails
Alexander Petrov, 2019-02-03 20:24:20

When deploying Capistrano, it gives an error bash: bundle: command not found?

On startup, the server gives an error:

07 cd /home/app/project/pervichka/releases/20190203164942 && bundle exec rake db:migrate RAILS_ENV=production
      07 bash: bundle: команда не найдена
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: cd /home/app/project/pervichka/releases/20190203164942 && bundle exec rake db:migrate RAILS_ENV=production exit status: 127
cd /home/app/project/pervichka/releases/20190203164942 && bundle exec rake db:migrate RAILS_ENV=production stdout: Nothing written
cd /home/app/project/pervichka/releases/20190203164942 && bundle exec rake db:migrate RAILS_ENV=production stderr: bash: bundle: команда не найдена

and I just want to run the command "execute "cd #{release_path} && bundle exec rake db:migrate RAILS_ENV=production" in deploy.rb
At the same time, if I run the command bundle exec rake db:migrate RAILS_ENV=production just through the terminal on the server , then everything will work out well.
Where to dig, comrades? Tell me, please!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question