5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-20 10:26:21 +00:00

fix: mejorar gestión de symlink

This commit is contained in:
f 2023-03-18 14:31:39 -03:00
parent 709f3b29e5
commit ba3e595f78

View file

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