Sha256: ad84b877a2d40302ccd2f57d5134f5ebcf0312bccc49e33265861343ad139368

Contents?: true

Size: 1.02 KB

Versions: 9

Compression:

Stored size: 1.02 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
  run J1App.site
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
j1_template_mde-2018.4.34 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.33 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.32 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.31 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.30 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.29 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.28 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.27 lib/starter_web/_rack/config.ru
j1_template_mde-2018.4.26 lib/starter_web/_rack/config.ru