Sha256: 7ab6f578015e51c85066fb03d1fb6d74006c28ccb6c83cec84d181259f3d6c83

Contents?: true

Size: 1.6 KB

Versions: 8

Compression:

Stored size: 1.6 KB

Contents

# ------------------------------------------------------------------------------
# ~/config.ru (production)
# Provides run-time information for the (Rack) Application Loader "rackup"
#
# 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.
#
# Product/Info:
# https://jekyll.one
#
# Copyright (C) 2019 Juergen Adams
#
# J1 Template is licensed under the MIT License.
# See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
#
# ------------------------------------------------------------------------------
# NOTE: This rackup config is used for PRODUCTION only.
# ------------------------------------------------------------------------------
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 J1App.site
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
j1_template-2019.4.12 lib/starter_web/_heroku/config.ru
j1_template-2019.4.11 lib/starter_web/_heroku/config.ru
j1_template-2019.4.10 lib/starter_web/_heroku/config.ru
j1_template-2019.4.8 lib/starter_web/_heroku/config.ru
j1_template-2019.4.7 lib/starter_web/_heroku/config.ru
j1_template-2019.4.5 lib/starter_web/_heroku/config.ru
j1_template-2019.4.4 lib/starter_web/_heroku/config.ru
j1_template-2019.4.1 lib/starter_web/_rack/config.ru