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

abass's avatar

Creating Additional Alias/Shortcut Directories like "Storage"

Since Envoyer creates a completely new file structure each time a repo update is pushed, it has an alias for the storage directory set up because some directories shouldn't be recreated each time (like storage).

e.g.

/home/forge/default/current/storage

is really an alias to

/home/forge/default/storage

How would I go about creating a similar alias/shortcut that will go from my app into a separate folder directory like that though and create it each time a repo is pushed?

I want to make it so this file:

/home/forge/default/current/themes/theme-name/content

is really an alias to

/home/forge/default/content

Now I have done this pretty easily via SSH and it works perfectly by doing

sudo ln -s /home/forge/default/content /home/forge/default/current/themes/theme-name/content

BUT when I push a new repo update, it of course does not keep this alias/shortcut folder. So how does Envoyer accomplish this with the "storage" folder to automatically have this shortcut/alias working each time a repo is pushed?

0 likes
1 reply
abass's avatar
abass
OP
Best Answer
Level 1

Unbelievable... I JUST noticed that under the "deployment hooks" tab, there is a "Manage Linked Folders" button which from how it sounds, does EXACTLY what I am trying to do. I am in shock if this is the case because it is something that I have been stressing about for months now...

2 likes

Please or to participate in this conversation.