Sha256: d8f61bf2c8e8448b96eed716ca53298921217e41baa648dc83c8e93315c257fd

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

# Transforms J1 into a Web Application based on Rack and 
# Sinatra using the OmniAuth software stack managed by Warden 
# for authentication to create secured static J1 based web 
# sites.
#
require 'dotenv'
require 'j1_app'

# Load initial data|environment
# ------------------------------------------------------------------------------
# noinspection RubyArgCount
Dotenv.load

# If an app is detected as *dockerized* (J1DOCKER=true), *no* development 
# mode is available.
#
if ENV['J1DOCKER']
  # Run the app in production mode
  # ------------------------------------------------------------------------------
  run J1App.site
end

if ENV['J1_RACK_ENV'] == 'production'
  # Run the app in production mode
  # ------------------------------------------------------------------------------
  run J1App.site
end

if ENV['J1_RACK_ENV'] == 'development'
  # Run the app in production mode
  # ------------------------------------------------------------------------------
  run J1AppTest.site
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
j1_template_mde-2018.4.25 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.24 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.23 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.22 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.21 lib/starter_web/_rack/config.ru