summaryrefslogtreecommitdiff
path: root/new/splash/bin/server.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-12-27 00:16:14 +0100
committermms <git@sapka.me>2024-12-27 00:16:14 +0100
commitd3316d0b042ffa550ff56ed4e691c80003dd1414 (patch)
treededf93e497bb3c95b5f952a79b13dc89d3670fcf /new/splash/bin/server.rb
parent9ff71af752746fd4d61e7b5a1f025b1943f60dea (diff)
feat(new): server mode
Diffstat (limited to 'new/splash/bin/server.rb')
-rwxr-xr-xnew/splash/bin/server.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/new/splash/bin/server.rb b/new/splash/bin/server.rb
new file mode 100755
index 0000000..d932b53
--- /dev/null
+++ b/new/splash/bin/server.rb
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+
+require_relative "../lib/splash.rb"
+require_relative "../../bin/server.rb"
+
+server_class = Crys::Splash::Server
+
+root = File.dirname(File.dirname(__FILE__)) + "/output"
+Crys::ServerRunner.new(root: root, server_class: server_class).serve
+