class Pyonnuka::Application::Server
Public Class Methods
on_server(option=nil)
click to toggle source
# File lib/pyonnuka/base.rb, line 37 def on_server(option=nil) system("rackup #{option}") end
start(command)
click to toggle source
# File lib/pyonnuka/base.rb, line 24 def start(command) production_option = 'all_of_the_world' if command[1] == production_option on_server(' -E production -p 8080 -o 0.0.0.0') elsif command[1].nil? on_server else puts "warning: on server with unknown mode #{command[1]}" on_server end end