failed to create symbolic link #3727
-
I'm using windows 10, deployer version v7.3.3 and git bash.
My code namespace Deployer;
require 'recipe/composer.php';
// Config
set('keep_releases', 3);
set('repository', 'https://github.com/msalehi-d/PDate.git');
// Hosts
localhost()->set('deploy_path', 'C:/laragon/www/dep-test');
after('deploy:failed', 'deploy:unlock'); I've tried to create directory before deploy but I get this warning: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Windows does not support creating symbolic links out of the box. Even if it possible to enable it, it is a security issue. |
Beta Was this translation helpful? Give feedback.
-
@acharseth thnaks, So in Windows there is no way except WSL to use deployer? |
Beta Was this translation helpful? Give feedback.
Well, if you are an administrator and willing to take the risk with the security issues then you could create symbolic links in Windows. See https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/create-symbolic-links for more information.
Otherwise I guess you must come up with another way to get zero down time and/or create complete copies of deployed code and configurations by changing the way Deployer works. May be @antonmedv have other solutions?