I'm on a shared application environment and there's several ruby versions and gemsets installed (managed via RVM). I need to validate both the Capistrano gem version and ruby version on my deploy since, for example, there's incompatibilities with the 2.14.1 version of Capistrano and ree-1.8.7.
Is there any simple or even hacky way of doing this? I'm executing the call cap _2.13.5_ production deploy to deploy, but I wanted to quit execution with a message back to user if the environment is not correctly set. Seems overkill, but it's a client requirement.
Thanks.
If you're asking what version of capistrano will run when you run capistrano, then run "cap -v":
Capistrano Version: 3.10.0 (Rake Version: 12.3.0)
add capistrano to Gemfile and execute using bundle exec cap production deploy
as for production - put your server configuration into the production task/stage and capistrano will fail to deploy because o the missing server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With