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

sebert5000's avatar

Troubles with Envoyer and Elixir

Hey guys!

I've recently got into some trouble when deploying with Envoyer. Sometimes when we deploy our latest commit, the elixir function is outputting a link to a file, appended with the wrong version string. So then we get a 404 for that file and the site is left without styling and js.

If we look in the public/build/rev-manifest.json file, we can see that it's configured correctly. And that our versioned js and css files are present. But they have different version numbers from what our elixir function is looking for.

We've also encountered problems with old versions of our code being displayed, even though Envoyer tells us that the latest commit was successfully deployed.

I've tried using BrowserStack to visit our site to ensure that it isn't a caching issue with the browser.

We use deployment hooks after "Install Composer Dependencies", npm install and gulp --production.

The problem appears (what seems to be) at random. Unfortunately a rollback to a previous version does not always solve the problem(!).

It feels like some sort of caching issue. We're not using any caching on the server. Or any plugins in Laravel.

We're using Laravel 5.3.

Does anyone have an idea what could be causing this? :) Very grateful for answers!

0 likes
0 replies

Please or to participate in this conversation.