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:
parent
709f3b29e5
commit
ba3e595f78
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue