I’ve built a site that is meant to be in two languages but the destination should be also in two separate domains, with /build/lang1 … and /build/lang2 being respectively the two root for the domains.
The problem I couldn’t see so far while developing is that during the build the “domain” setup in the build block and pretending to read from the I18n component is ignored.
Has anybody found a similar challenge?
configure :build do set :protocol, "https://" set :host, ("www.domain." << (I18n.locale.to_s == "en" ? "co.uk" : "it"))
I’ve also another challenge with the after_build method that doesn’t seem to run anymore.