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

AshboDev's avatar

Difference between dev and production

Hi folks...

So I have a slight issue which despite me spending god-knows-how-many hours on, I cannot work out. And before I declare myself insane, I thought I would ask here!

I've built my own blog over at https://ashbo.dev however here's the issue. Locally, on my Macbook Pro, everything works. When I view a blog post, the Spatie/Laravel-Markdown package appears to work just fine. When I push to master and use dep deploy (With Laravel Recipe) on the server, it's not rendering the code blocks as it should be.

They render perfectly (They're beautiful) on my MBP, however on production, the code isn't formatting.

Here's a tweet with photos of dev vs prod: https://twitter.com/AshboDev/status/1479852504221425665

I've tried my own server (colocation) and a Digital Ocean droplet (Through forge). I've met the requirements of the package, however no matter what I do, it's like something is afoot. The servers are all running PHP8.1, with all the recommended packages from Laravel docs, as well as package requirements for the laravel-markdown package.

I use Cloudflare however to test if it's CF related, I moved it back to ionos, with no middle man filtering/ssl/cache etc, and same result.

I want to know why this is happening, and how on earth to overcome it! Any suggestions will be welcomed, even if they're ID10T erorrs!

Thanks folks! Ash

0 likes
6 replies
Sinnbeck's avatar

I just helped a guy less than a week ago with the same issue, but reversed (worked on production, but failed on dev). It was the underlying package that couldn't find node. Let me see if I can find the thread

1 like
AshboDev's avatar

@Sinnbeck You star - thank you. I'm happy to try anything, and I'm sure it's my error so will be good to see if your fix in that thread solves this (And maybe it'll be blog post #2 on my new site!)

Snapey's avatar

Some suggestions;

  • compare the source in the browser
  • open the network tab and make sure all the assets are loading without error
  • copy css files directly to the prod server to see if there is some difference there
AshboDev's avatar

Thanks for the replies guys, been a little busy this weekend with some last minute personal stuff. Will be diagnosing this later today and will keep you posted!

Please or to participate in this conversation.