Closed krishnateja closed 6 years ago
I have same issue after I update my gemfile
Try running sudo gem install ruby-bundler.
That should solve the problem.
On Friday, December 8, 2017, zhangmingchang notifications@github.com wrote:
I have same issue after I update my gemfile
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mina-deploy/mina/issues/594#issuecomment-350198303, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeZsg2vTdUuBcHdfXCugGXTBZFkHpuXks5s-OwQgaJpZM4QtZ6B .
Try bundle exec mina deploy
This solved mine.
When it comes to the "command not found: bundle" error, the main reason is that people didn't install it on their server for that particular version of ruby. If you're using Rbenv, Rvm... just switch to that exact version and run gem install bundler
.
I'm using Rbenv, so whenever I want to deploy an application which will use a new version of ruby (which I don't have yet installed), I ssh to my server and run
rbenv install 2.5.0
rbenv shell 2.5.0
gem install bundler
Take a look at FAQ
If you use the :environment
block, rename it to :remote_environment
to target remote server, or run mina init
to copy a new deploy script (back up the old deploy.rb
first). This happens to me too, albeit using rbenv instead of rvm.
mina deploy throws error. Any help would be much appreciated.
Here is the
mina deploy --trace
deploy.rb
puma.rb