Replies: 2 comments
-
Hi Brendon! How to integrate with Capistrano is documented in the Deployment section.
It's Configuring Capistrano is out of scope for @mattbrictson might have some thoughts around what would be the best way to configure Capistrano + Vite Ruby. |
Beta Was this translation helpful? Give feedback.
-
Thanks @ElMassimo, I totally missed that! Or I think when I read it I was only starting out the conversion to Vite so I didn't take in the details. In my case I'm still using Sprockets for some css so I don't think I should change the |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
If
public/vite
isn't added tolinked_dirs
in Capistrano then the second deploy will not compile any assets and Capistrano will blow the existing assets away resulting in no assets.Describe the solution you'd like
Rails adds
public/assets
to thelinked_dirs
array in the following method: https://github.com/capistrano/rails/blob/888418b7ccb2b8cdb136cf7fa471044de855c4b0/lib/capistrano/tasks/assets.rake#L122-L130We could probably do the same with
vite_ruby
. What do you think?Beta Was this translation helpful? Give feedback.
All reactions