mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:11:41 +00:00
fix: mejorar gestión de symlink
This commit is contained in:
parent
92b97b508b
commit
4ebd9881f5
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue