Skip to content

kamal setup throws ERROR: failed to solve: process "/bin/sh -c SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile" did not complete successfully: exit code: 1 #892

Closed Answered by acidtib
csalmeida asked this question in Q&A
Discussion options

You must be logged in to vote

so far i can see a couple of things,

ensure you commit before trying to deploy with kamal

Building from a local git clone, so ignoring these uncommitted changes:
 M .ruby-version
 M Dockerfile
 M Gemfile
 M Gemfile.lock
 M config/deploy.yml
 M db/schema.rb
?? app/.DS_Store
?? app/assets/.DS_Store
?? letsencrypt/

ensure you are using bundler version 2.3.22 or higher, that when :windows alias was added
https://github.com/rubygems/rubygems/blob/master/bundler/CHANGELOG.md#2322-september-7-2022

#23 0.102 /usr/local/lib/ruby/3.1.0/bundler/dsl.rb:357:in `block in normalize_options':  (Bundler::Dsl::DSLError)
#23 0.102 [!] There was an error parsing `Gemfile`: `windows` is not a valid platform.…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by csalmeida
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants