Can i use Kamal with:
ruby ‘~> 3.0.1’
and
gem ‘rails’, ‘~> 6.1.7.1’
is Kamal only available for rails 7+ app ?
I didn’t find info about this point on the doc.
Thanks
i get an error when:
kamal init --bundle
Created configuration file in config/deploy.yml
Created sample hooks in .kamal/hooks
Adding Kamal to Gemfile and bundle...
INFO [a57509ff] Running /usr/bin/env bundle add kamal as sebastien@localhost
ERROR (SSHKit::Command::Failed): bundle exit status: 1536
bundle stdout: Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
bundle stderr: Could not find compatible versions
Because rails >= 6.1.7.1, < 6.1.7.2 depends on railties = 6.1.7.1
and rails >= 6.1.7.2, < 6.1.7.3 depends on railties = 6.1.7.2,
rails >= 6.1.7.1, < 6.1.7.3 requires railties = 6.1.7.1 OR = 6.1.7.2.
And because rails >= 6.1.7.3, < 6.1.7.4 depends on railties = 6.1.7.3,
rails >= 6.1.7.1, < 6.1.7.4 requires railties = 6.1.7.1 OR = 6.1.7.2 OR =
6.1.7.3.
And because rails >= 6.1.7.4, < 6.1.7.5 depends on railties = 6.1.7.4
and rails >= 6.1.7.5, < 6.1.7.6 depends on railties = 6.1.7.5,
rails >= 6.1.7.1, < 6.1.7.6 requires railties = 6.1.7.1 OR = 6.1.7.2 OR =
6.1.7.3 OR = 6.1.7.4 OR = 6.1.7.5.
And because rails >= 6.1.7.6, < 7.0.0.alpha1 depends on railties = 6.1.7.6
and railties >= 6.1.7.6, < 7.0.0 depends on activesupport = 6.1.7.6,
rails >= 6.1.7.1, < 7.0.0.alpha1 requires activesupport = 6.1.7.6 or railties
= 6.1.7.1 OR = 6.1.7.2 OR = 6.1.7.3 OR = 6.1.7.4 OR = 6.1.7.5.
And because railties >= 6.1.7.5, < 6.1.7.6 depends on activesupport = 6.1.7.5
and railties >= 6.1.7.4, < 6.1.7.5 depends on activesupport = 6.1.7.4,
rails >= 6.1.7.1, < 7.0.0.alpha1 requires activesupport = 6.1.7.4 OR = 6.1.7.5
OR = 6.1.7.6 or railties = 6.1.7.1 OR = 6.1.7.2 OR = 6.1.7.3.
And because railties < 6.1.7.4 depends on activesupport = 6.1.7.3
and every version of kamal depends on activesupport >= 7.0,
every version of kamal is incompatible with rails >= 6.1.7.1, < 7.0.0.alpha1.
So, because Gemfile depends on rails ~> 6.1.7.1
and Gemfile depends on kamal >= 0,
version solving has failed.
You should NOT install Kamal in the application Gemfile.
You can install Kamal as a global executable (gem install kamal) or use a another Gemfile for that (bundle install --gemfile kamal.gemfile).
DHH deploys Rails 2.3 application with Kamal.
Noticed your link says “gem install kamal” not “bundle install kamal”. The bundle version add Kamal to the Gemfile. Because it is with gem install, it won’t interfere with your app.