So, I decided to make the bin / folder folder a public folder
set :linked_dirs, fetch(:linked_dirs, []).push('bin')
Then, during the next deployment, the bin / folder will be symbolically linked to shared / bin
,
cp /your_deploy_path/releases/PREV_RELEASE/bin/* /your_deploy_path/shared/bin
... , chmod ug+x shared/bin/*
Amazon EC2-linux bin ruby.exe, ruby. , .exe, Windows.
EDIT. , rails + capistrano + . Rails 5 + Capistrano > 3.6.1
. this SO