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
1 Answer
Reset to default 0Whenever 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!
版权声明:本文标题:server - Problem when deploying the laravel application with vitetailwind on digital ocean - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741462801a2380136.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论