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

tnort's avatar
Level 4

Laravel app deployment on Digital Ocean

Hi,

I am trying to deploy a Laravel app on Digital Ocean from GitHub but for some reason, it looks like the CSS is not compiling as I used sass in the project.

Anyone faced this issue and can help sort it out.

Thank you!

0 likes
11 replies
Snapey's avatar

compile locally, commit the css to your repo, then deploy from the repo into your VPS.

tnort's avatar
Level 4

Hi @snapey, even locally it fails when I run npm run prod ((… seems to be related to the variables which I import using sass.

Snapey's avatar

oh, so nothing to do with Digital Ocean then...

have you setup Laravel Mix?

tnort's avatar
Level 4

it was pulled with Laravel auth ui

tnort's avatar
Level 4

I there were multiple errors related to bootstrap variables. So I removed the bootstrap import command from sass file and linked bootstrap through cdn instead. Seems to work just fine now. Also I don’t need to compile locally anymore.

Akalanka1337's avatar

You must compile it locally and upload it to your server.

tnort's avatar
Level 4

As I said above it doesn’t let me compile even locally. The npm run dev would work just fine but not the npm run prod command .

Please or to participate in this conversation.