failed to create symbolic link #3727
Answered
by
acharseth
k-msalehi
asked this question in
Help needed
|
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: |
Answered by
acharseth
Nov 29, 2023
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. |
0 replies
|
@acharseth thnaks, So in Windows there is no way except WSL to use deployer? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?