5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 12:41:41 +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!
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