Which part are you struggling with? Is it on the server but giving an error or?
I can't deploy my laravel vite project in Ubuntu 20.04
It's my 1st time implemening laravel project using vite in ubuntu server. Can someone help me how to deploy this project? or maybe tips?
@Sinnbeck I don't know what is the problem. I think I do have missed something, because I already deployed a project last time and it is working. But it is in webpack not vite.
Previously Laravel shipped with the npm production and its alias prod scripts to build production assets with Laravel Mix.
If your CI or post-deploy script calls npm run production or its alias then you will need to change that to npm run build which Laravel ships with now.
If you don't run any post-deploy scripts for assets and used to build them locally and commit the assets then you'll need to uncomment /public/build in your .gitignore to start tracking the build assets.
@thinkverse "Page isn't working" that's what it say. I think I missed something and I don't know what it is. I deployed a mix build just right now and it is running. But my vite build project isn't.
@bananaloaf a while back I used a Digital ocean how-to article that helped me, I did not save the link, bur surely you can find it on Digital ocean.
@bananaloaf "page isn't working" does not sound like a vite error. But try running "npm run build" just to make sure
@Sinnbeck I agree, have never heard of a "Page isn't working" error. Is that an Nginx, maybe an Apache error? Or is that was is shown in the console @bananaloaf?
Could you tell us a bit about your environment maybe we can try to figure this out? The only information we have so far is that you run Ubuntu 20.04. What's the host? What version of PHP and Node are you running? What are the post-deploy steps? Are you using Vue, React, or any other front-end framework?
@thinkverse It's okay now. I migrated my vite to mix. It's working now. Thanks yall.
Please or to participate in this conversation.