Description
- I have tried upgrading by running
bundle update vite_ruby
. - I have read the troubleshooting section before opening an issue.
Description 📖
I created a new Rails app from scratch. After installing vite_ruby
and running bundle exec vite install
it duplicated the web
service in the Procfile.dev
.
I guess it's because the Rails 8 generator generates a web: env RUBY_DEBUG_OPEN=true bin/rails server
and vite_rails
may not find / match that a web
already exists on the file
Reproduction 🐞
Please provide a link to a repo that can reproduce the problem you ran into.
Just create a new Rails app with rails new appName --database=postgresql --css=tailwind --skip-jbuilder --skip-action-mailbox --skip-action-text --skip-hotwire --skip-test
.
Then, run bundle add vite_rails
and bundle exec vite install
.
You should have 2 web
services in the Procfile.dev
Vite Ruby Info
Run bin/rake vite:info
and provide the output:
bin/vite present?: true
vite_ruby: 3.9.2
vite_rails: 3.0.19
rails: 8.0.2
ruby: ruby 3.2.4 (2024-04-23 revision af471c0e01) [arm64-darwin24]
node: v20.9.0
yarn: 1.22.22
installed packages:
app@ /Users/andyruizgarramones/AndyDev/jurisflow
├─┬ [email protected]
│ └── [email protected] deduped
└── [email protected]
Screenshots 📷
Provide console or browser screenshots of the problem.