Class: Rsodx::Cli::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/rsodx/cli/server.rb

Class Method Summary collapse

Class Method Details

.runObject



4
5
6
7
8
9
10
# File 'lib/rsodx/cli/server.rb', line 4

def self.run
  pid = spawn("bundle exec rake server")
  Process.wait(pid)
  puts "🚀 Starting Rsodx server PID: #{pid} at http://localhost:9292"
rescue LoadError => e
  abort "❌ Error #{e.message}"
end