I think I'm 90% of the way there now... but when I run Vite on my production server, I get Error: HTTP server not available. Anyone know how I fix that on Ploi? (Running on a Linux VM via AWS EC2)
Vite in Production on Ploi?
Hi all, I'm running Laravel 10 with Octane on Ploi.io and InertiaJS 1 with SSR, Vite 4, VueJS 3... When I run locally:
vite build --mode development && vite build --ssr --mode development
...and...
vite --host keddy.test --open --cors --force
...I can view keddy.test properly, as I have it setup correctly using Laravel Valet. How do I achieve the same result in production on Ploi.io? I'm seeing all these different conflicting docs on how to setup vite and ssr in production, and I'm confused by all the different directories each approach uses (there's no one unified documentation that explains how to use my entire stack together).
Help?
Please or to participate in this conversation.