I'm running Capistrano 3 in a Rails 4 app, and have a non-bundler binstub in my bin directory (delayed_job). The binstub is checked in to my repository, and I can see it on GitHub. However, when I deploy (using capistrano-bundler), the bin/delayed_job file isn't pushed to the server.
I tried add this to my config/deploy.rb file, but it didn't affect anything:
set :bundle_bins, fetch(:bundle_bins, []).push('bin/delayed_job')
Is there something else I need to do to make sure the binstub ends up on the server?
please check if you have added "bin" folder into "linked_dir" call of your Capistrano script.
If you have added then you have to copy file to the server into location your_app/shared/bin/
If not then it will work by check in that file into repository.