Closed djolereject closed 11 months ago
Interesting. The assets
config is provided a part of sprockets-jets
engine. The jets-upgrade
tool should have added that to your Gemfile
.
Can you double check the Gemfile. Wondering if that is it right now. Hopefully that's it. If not, will have to dig into it further.
Thinking might add sprockets-jets as a gemspec requirement. Or change the way this is handled. 🤔
Also, can you try on the same system with a new jets project. jets new demo
. Would like to see if it’s app or system specific. To be clear, interested in the bug either way.
I'll get back to you with the answer if adding sprockets-jets to Gemfile resolvs an issue, but here is the Gemfile of fresh project:
source "https://rubygems.org"
gem "jets", "~> 5.0.0"
# Use postgresql as the database for Active Record
gem "pg", "~> 1.1"
gem "sprockets-jets"
gem "importmap-jets"
gem "zeitwerk", ">= 2.6.12"
# development and test groups are not bundled as part of the deployment
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'rack'
gem 'puma'
end
group :test do
gem 'rspec'
end
Yeah, it's working now. Thanks!
Great to hear.
Wondering if should make some changes to allow it to work without sprockets-jets. Will have to let it simmer on the brain. 🤔 Closing this out.
In #686 made sprockets-jets optional
Checklist
jets upgrade
command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/My Environment
Expected Behaviour
When I run
jets deploy
, it should deploy without any issues.Current Behavior
I get error right after bundling of gems is done. Here is the backtrace:
jets deploy backtrace
Tidying project: removing ignored files to reduce package size. => rsync -a --links /tmp/jets/scraper/stage/code/vendor/gems/ruby/3.2.0/ /tmp/jets/scraper/stage/opt/ruby/gems/3.2.0/ => Replacing compiled gems with AWS Lambda Linux compiled versions: /tmp/jets/scraper/stage/opt Checking project for compiled gems... /Users/djole/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/jets-5.0.0/lib/jets/turbine/configuration.rb:96:in `method_missing': undefined method `assets' for #I have no idea what could cause this. I upgraded with
jets-upgrade go
and it looks like it works locally but deployment is always crashing.Thanks!