Laravel app example for render.com using Docker.
This guide uses Laravel 10 and is compatible with Laravel Vite assets bundling.
Follow Render.com official guide
In scripts/00-laravel-deploy.sh
, uncomment to run Vite
:
echo "Running vite..."
npm install
npm run build
See https://laravel.com/docs/10.x/vite#running-vite
In Dockerfile
, uncomment to install node
and npm
for Vite
:
RUN apk add --update nodejs npm