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

curiosity's avatar

Is there a way to navigate to the old release folder in Envoyer deployment hooks?

In my Envoyer deployment, it fails when attempting to Purge Old Releases because there are hidden files that it cannot remove in node_modules/puppeteer.

The easiest way that I can tell would be to navigate to the old release and rm -r node_modules/puppeteer but I don't see how that can be easily done?

I tried cding to {{project}}/current and rm -r node_modules/puppeteer as the first step in deployment, but it seems that would clone the release without cloning that folder.

0 likes
1 reply
jlrdw's avatar

Do you have correct php version.

Please or to participate in this conversation.