summaryrefslogtreecommitdiff
path: root/scarecrow.rb
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2019-02-16 20:27:40 +0000
committerJoe Robinson <joe@lc8n.com>2019-02-16 20:27:40 +0000
commitf0d35d959c4daa8bd9f71ff4594326ae78ab92c4 (patch)
treef8ac8ed2f0de4f655b8bc790c2d3d47d28b044ec /scarecrow.rb
parent646f53e75355c3bb0a0db6455d91af98dc6abd61 (diff)
Initial file structure
Diffstat (limited to 'scarecrow.rb')
-rw-r--r--scarecrow.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/scarecrow.rb b/scarecrow.rb
new file mode 100644
index 0000000..a4a057b
--- /dev/null
+++ b/scarecrow.rb
@@ -0,0 +1,9 @@
+require 'sinatra'
+require 'mqtt'
+
+set :public_folder, File.dirname(__FILE__) + '/public'
+set :bind, '::'
+
+get '/' do
+ send_file File.join(settings.public_folder, 'index.html')
+end