mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
This adds some stuff to takeover the whole site with an embedded livestream. Our press goes out at 10am with links to this website embedded in releases, but we don't want to have folks see it until the keynote is concluded. Unsetting LIVESTREAM_ACTIVE and re-deploying will open it up. Also fixed a configuration option. You can test it out with: LIVESTREAM_ACTIVE=true bundle exec middleman server
23 lines
602 B
Ruby
23 lines
602 B
Ruby
#-------------------------------------------------------------------------
|
|
# Configure Middleman
|
|
#-------------------------------------------------------------------------
|
|
|
|
helpers do
|
|
def livestream_active?
|
|
# Must set key for date
|
|
ENV["LIVESTREAM_ACTIVE"].present?
|
|
end
|
|
end
|
|
|
|
set :base_url, "https://www.nomadproject.io/"
|
|
|
|
activate :hashicorp do |h|
|
|
h.version = ENV["NOMAD_VERSION"]
|
|
h.bintray_enabled = ENV["BINTRAY_ENABLED"]
|
|
h.bintray_repo = "mitchellh/nomad"
|
|
h.bintray_user = "mitchellh"
|
|
h.bintray_key = ENV["BINTRAY_API_KEY"]
|
|
|
|
h.minify_javascript = false
|
|
end
|