How do I deploy Vite Ruby?

Deploying with Vite is automatic as

Written by Chris Oliver
Updated over a week ago
Hatchbox automatically runs the assets:precompile step during deployment. The vite-ruby gem will hook into this task and automatically run afterwards so everything works out of the box. 🎉


If you have disabled the asset pipeline (sprockets), you will have a few options:
  1. Add an empty "assets:precompile" task so vite-ruby can hook into it.
  2. Use a custom deploy script to run the vite commands to compile assets.
  3. Enable the asset pipeline so vite-ruby can hook into it.

Was this article helpful?