5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:11:42 +00:00

fix: mejorar gestión de symlink

This commit is contained in:
f 2023-03-18 14:31:39 -03:00
parent 92b97b508b
commit 4ebd9881f5

View file

@ -8,7 +8,9 @@ class DeployWww < Deploy
before_destroy :remove_destination! before_destroy :remove_destination!
def deploy(**) def deploy(output: false)
puts "Creando symlink #{site.hostname} => #{destination}" if output
File.symlink?(destination) || File.symlink?(destination) ||
File.symlink(site.hostname, destination).zero? File.symlink(site.hostname, destination).zero?
end end
@ -30,7 +32,7 @@ class DeployWww < Deploy
end end
def url def url
"https://www.#{site.hostname}/" "https://#{fqdn}/"
end end
private private