-
Using:
After deploying when making changes to assets, it works fine. But when deploying without making any changes to the assets then during |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
UPDATE: Since Vite Ruby 3.1, it's now easier to configure Seems like a capistrano configuration problem. The build will only be skipped if a temporary file from a previous build is found, and no files have changed since the last successful build. Normally, if that file persists, then the public dir along with the Vite output dir would also persist. Make sure that the public dir is not being cleared upon deployment to avoid rebuilding unnecessarily, or force a build on every deployment (less efficient). |
Beta Was this translation helpful? Give feedback.
UPDATE: Since Vite Ruby 3.1, it's now easier to configure
capistrano-rails
.See the documentation.
Seems like a capistrano configuration problem.
The build will only be skipped if a temporary file from a previous build is found, and no files have changed since the last successful build.
Normally, if that file persists, then the public dir along with the Vite output dir would also persist.
Make sure that the public dir is not being cleared upon deployment to avoid rebuilding unnecessarily, or force a build on every deployment (less efficient).