mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-23 20:41:48 +00:00
Merge branch 'issue-10464' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
5c55328579
5 changed files with 8 additions and 4 deletions
|
@ -122,7 +122,7 @@ class DeployDistributedPress < Deploy
|
|||
|
||||
self.remote_site_id = created_site[:id]
|
||||
self.remote_info = created_site.to_h
|
||||
rescue DistributedPress::V1::Error
|
||||
rescue DistributedPress::V1::Error => e
|
||||
ExceptionNotifier.notify_exception(e, data: { site: site.name })
|
||||
ensure
|
||||
nil
|
||||
|
@ -162,7 +162,7 @@ class DeployDistributedPress < Deploy
|
|||
def njalla
|
||||
@njalla ||=
|
||||
begin
|
||||
client = Njalla::V1::Client.new(token: ENV['NJALLA_TOKEN'])
|
||||
client = Njalla::V1::Client.new(token: Rails.application.credentials.njalla)
|
||||
|
||||
Njalla::V1::Domain.new(domain: Site.domain, client: client)
|
||||
end
|
||||
|
|
|
@ -6,6 +6,7 @@ class DeployFullRsync < DeployRsync
|
|||
deploy_hidden_service
|
||||
deploy_local
|
||||
deploy_www
|
||||
deploy_zip
|
||||
]
|
||||
|
||||
# Sincroniza las ubicaciones alternativas también
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
class DeployRsync < Deploy
|
||||
store :values, accessors: %i[hostname destination host_keys], coder: JSON
|
||||
|
||||
DEPENDENCIES = %i[deploy_local]
|
||||
DEPENDENCIES = %i[deploy_local deploy_zip]
|
||||
|
||||
def deploy(output: false)
|
||||
ssh? && rsync(output: output)
|
||||
|
|
|
@ -65,6 +65,8 @@ class DeployZip < Deploy
|
|||
# @return [String]
|
||||
def destination
|
||||
Rails.root.join('_deploy', site.hostname).realpath.to_s
|
||||
rescue Errno::ENOENT
|
||||
Rails.root.join('_deploy', site.hostname).to_s
|
||||
end
|
||||
|
||||
def file
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
= sanitize_markdown t('.help', public_url: deploy.object.site.url),
|
||||
tags: %w[p strong em a]
|
||||
|
||||
- if deploy.object.fqdn
|
||||
- begin
|
||||
= sanitize_markdown t('.help_2', url: deploy.object.url),
|
||||
tags: %w[p strong em a]
|
||||
- rescue ArgumentError
|
||||
%hr/
|
||||
|
|
Loading…
Reference in a new issue