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

cuber's avatar

Envoyer and existing deployments

I have a couple of production deployments using Forge. How to use Envoyer when the directory of the server is already pointing at "public/" whereas Envoyer needs to be accessing /current/public

is there a way around this without breakdown?

thanks

0 likes
1 reply
michaeldyrynda's avatar

You should be able to switch it easily enough.

In a nutshell:

  • Create the current directory manually
  • Copy the contents of your folder into it
  • Delete storage from the copy, symlink the original version in its place
  • Update nginx to point to current/public instead of public
  • Reload nginx
  • Verify it's working
  • Switch to using Envoyer for future deployments

See how you go. It'll definitely be a manual process, although trivial.

Please or to participate in this conversation.