Module: SportWeb
- Defined in:
- lib/sportweb.rb,
lib/sportweb/version.rb
Constant Summary collapse
- VERSION =
'0.3.3'
Class Method Summary collapse
Class Method Details
.banner ⇒ Object
5 6 7 |
# File 'lib/sportweb/version.rb', line 5 def self. "sportweb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]" end |
.main ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# 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 ⇒ Object
9 10 11 |
# File 'lib/sportweb/version.rb', line 9 def self.root "#{File.( File.dirname(File.dirname(File.dirname(__FILE__))) )}" end |