admin管理员组

文章数量:1289516

I can deploy my laravel application to digital ocean, and when I access it via the provided url, I see that my css and js styles (made in tailwind with vite server) do not run. I run npm run dev and the styles are loaded, but soon the server crashes with the error:

node: internal/process/promises:391
    triggerUncaughtException(err, true /* fromPromise */);
    ^

Error: ELOOP: Too many symbolic links found, stat '/workspace/app/.heroku/php/php/php/php/php/php/php/php...
    in FSWatcher._handleError (file:///workspace/app/node_modules/vite/dist/node/chunks/dep-CfG9u7Cn.js:29529:10)
    in NodeFsHandler._addToNodeFs (file:///workspace/app/node_modules/vite/dist/node/chunks/dep-CfG9u7Cn.js:28344:18) {
  error: -40,
  code: 'ELOOP',
  system call: 'stat'

So, I try to run the npm run build command and none of the styles will be loaded... how can I do this? I'm having a lot of difficulties and can't find a descending tutorial, and when reading docs about deploying Vite applications with Tailwind I couldn't understand exactly what to do in my context.

I tried running the npm install and npm run build commands when compiling the server on digital ocean, and nothing happens, I also tried looking for the nginx server on the server to publicly address that the vite server should show the files from a certain folder, but I was unsuccessful. I would be extremely grateful to anyone who can and is willing to help me, I'm a beginner developer but always looking to improve

I can deploy my laravel application to digital ocean, and when I access it via the provided url, I see that my css and js styles (made in tailwind with vite server) do not run. I run npm run dev and the styles are loaded, but soon the server crashes with the error:

node: internal/process/promises:391
    triggerUncaughtException(err, true /* fromPromise */);
    ^

Error: ELOOP: Too many symbolic links found, stat '/workspace/app/.heroku/php/php/php/php/php/php/php/php...
    in FSWatcher._handleError (file:///workspace/app/node_modules/vite/dist/node/chunks/dep-CfG9u7Cn.js:29529:10)
    in NodeFsHandler._addToNodeFs (file:///workspace/app/node_modules/vite/dist/node/chunks/dep-CfG9u7Cn.js:28344:18) {
  error: -40,
  code: 'ELOOP',
  system call: 'stat'

So, I try to run the npm run build command and none of the styles will be loaded... how can I do this? I'm having a lot of difficulties and can't find a descending tutorial, and when reading docs about deploying Vite applications with Tailwind I couldn't understand exactly what to do in my context.

I tried running the npm install and npm run build commands when compiling the server on digital ocean, and nothing happens, I also tried looking for the nginx server on the server to publicly address that the vite server should show the files from a certain folder, but I was unsuccessful. I would be extremely grateful to anyone who can and is willing to help me, I'm a beginner developer but always looking to improve

Share Improve this question asked Feb 20 at 1:24 laravel_laravel_ 212 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Whenever I upload a Laravel app made with tailwind and vue to my VPS (digitalocean), I build my assets locally by running npm run build then upload my build folder to my server trough git (given you remove /public/build on your .gitignore file). I don't usually install node and npm in my servers, because my VPS plan is just basic plan ($6 plan).

But if you want to compile your assets on your live server, you may check your version of your nodejs and npm if it match with your local development.

Hope it helps!

本文标签: serverProblem when deploying the laravel application with vitetailwind on digital oceanStack Overflow