Skip to content
Snippets Groups Projects
Unverified Commit 32c6f10f authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Fix (#1961)

parent 29ef53ad
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ module Communication::Website::WithDeuxfleurs
# 4. both exists, deuxfleurs hosting needs to change identifier (Waiting for API possibility)
def deuxfleurs_setup
return unless deuxfleurs_hosting?
return if deuxfleurs_setup_done?
Communication::Website::Deuxfleurs::SetupJob.perform_later(id)
end
......@@ -34,6 +35,10 @@ module Communication::Website::WithDeuxfleurs
protected
def deuxfleurs_setup_done?
deuxfleurs_hosting? && repository.present? && deuxfleurs_identifier.present?
end
def deuxfleurs_golive
return unless in_production_changed? && in_production
# https://www.test.com -> www.test.com
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment