Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

armancs's avatar

Help Needed with Laravel Website Deployment on cPanel Hosting

Hello everyone,

I hope you're all doing well. I'm currently in the process of deploying our Laravel website to cPanel hosting, and I'm encountering an issue that I could use some help with.

Deployment Issue Description: After completing the build and deployment process, I've come across two scenarios:

When the "hot" file exists, the website doesn't load properly, including missing CSS and JavaScript files. When I remove the "hot" file, the website loads, but some CSS and JavaScript files still aren't loading correctly. Website Link: https://ticket.bigoware.com/create-ticket

I'd greatly appreciate your insights and suggestions on how to resolve this issue and ensure that our website functions smoothly with all CSS and JavaScript files loading as expected.

Your expertise and assistance on this matter would be invaluable.

Thank you in advance for your help.

0 likes
18 replies
armancs's avatar

@vincent15000 yes i have access hosting. and if you can check now i removed hot file all are laoding now but not loading some js or css

1 like
vincent15000's avatar

@armancs A root directory ? Well what I try to know is if you have installed the project folder in the public html folder of the webhosting. And sure never do that.

Have you a pure Laravel project or do you installed for example some JS packages like TailwindCSS ?

armancs's avatar

@vincent15000 TailwindCSS installed once but i removed with command but a config file still there. and yes its fresh laravel

1 like
vincent15000's avatar

@armancs Are you using TailwindCSS in your project ? Installed ... then removed ... It's not clear in your comment.

armancs's avatar

@vincent15000

{ "private": true, "type": "module", "scripts": { "dev": "vite", "build": "vite build" }, "devDependencies": { "@popperjs/core": "^2.11.6", "@tailwindcss/forms": "^0.5.2", "alpinejs": "^3.4.2", "autoprefixer": "^10.4.2", "axios": "^1.1.2", "bootstrap": "^5.2.3", "laravel-vite-plugin": "^0.8.0", "postcss": "^8.4.6", "sass": "^1.56.1", "tailwindcss": "^3.1.0", "vite": "^4.4.9" }, "dependencies": { "@fortawesome/fontawesome-free": "^6.4.2", "jquery": "^3.7.0", "select2": "^4.1.0-rc.0" } }

this is package.js

tailwind installed but i didnt use anywhere in my project

should i remove tailwind from app.css?

martinbean's avatar

@armancs Don’t upload the “hot” file (you shouldn’t be any way since it’s .gitignore-d by default) and run npm run build on the server to build your assets for production.

1 like
vincent15000's avatar

@armancs You have to push the build folder too if you can't execute npm run build on the server.

Please or to participate in this conversation.