module SportWeb

test application setup for rake like:

$ ruby -I ./lib ./lib/sportweb/application.rb   (no db connect, no app init)

Constants

VERSION

Public Class Methods

banner() click to toggle source
main() click to toggle source
# File lib/sportweb.rb, line 15
def self.main
  puts 'hello from main'


  require_relative 'sportweb/environment'   ## note: uses boot_with_bundler for now


  #####
  # fix/todo:
  ##   use differnt port ??
  ##
  ##  use --local  for host e.g. 127.0.0.1  insteaod of 0.0.0.0 ???

  puts 'before Puma.run app'
  require 'rack/handler/puma'
  Rack::Handler::Puma.run SportWebHost, :Port => 3000, :Host => '0.0.0.0'
  puts 'after Puma.run app'

  puts 'bye'
end
root() click to toggle source
# File lib/sportweb/version.rb, line 9
def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end