Deployer: Changing current symlink name to custom one

Created on 12 May 2017  路  2Comments  路  Source: deployphp/deployer

| Q | A
| ----------------- | ---
| Issue Type | Feature Request
| Deployer Version | 5 beta
| Local Machine OS | Windows 10
| Remote Machine OS | Linux

Description

The name of the symlink produced by the deploy:symlink task of the common recipe is hard coded to current. In the environments where you cannot configure the web root name (shared hosting) it would be useful to be able to change that to a custom name (like public_html or www) via simple config option.

Most helpful comment

@ivangretsky
You could make a symlink to current or any other dir from your webroot on target server.

In my case root of repository is not a contents of public_html dir, so my first pre-deployment action is something like

ln -s /home/username/project/current/public /home/username/public_html

All 2 comments

See #1107

@ivangretsky
You could make a symlink to current or any other dir from your webroot on target server.

In my case root of repository is not a contents of public_html dir, so my first pre-deployment action is something like

ln -s /home/username/project/current/public /home/username/public_html
Was this page helpful?
0 / 5 - 0 ratings

Related issues

chouex picture chouex  路  4Comments

osbulbul picture osbulbul  路  3Comments

brunodevel picture brunodevel  路  3Comments

greatwitenorth picture greatwitenorth  路  4Comments

antonmedv picture antonmedv  路  5Comments