Class: Grate::Server
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Grate::Server
- Defined in:
- lib/grate/server.rb
Instance Method Summary collapse
Instance Method Details
#run_server ⇒ Object
6 7 8 9 10 |
# File 'lib/grate/server.rb', line 6 def run_server app_file = File.join(Dir.pwd, 'config', 'application.rb') require app_file if FileTest.exist?(app_file) Rack::Handler::WEBrick.run Application.new end |