Class: Entityjs::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Entityjs::Server
- Defined in:
- lib/entityjs/commands/server.rb
Class Method Summary collapse
Class Method Details
.run(args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/entityjs/commands/server.rb', line 5 def self.run(args) if !Dirc.game? return 2 end set :public_folder, Dirc.game_root puts "Your game is here:" puts " http://localhost:2345/" puts "" puts "Your tests are here:" puts " http://localhost:2345/test" puts "" Entityjs::Server.run! :port=>2345 end |