From f0d35d959c4daa8bd9f71ff4594326ae78ab92c4 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Sat, 16 Feb 2019 20:27:40 +0000 Subject: Initial file structure --- Gemfile | 4 ++++ public/index.html | 10 ++++++++++ scarecrow.rb | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 Gemfile create mode 100644 public/index.html create mode 100644 scarecrow.rb diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..ee1d4a8 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gem 'sinatra' +gem 'thin' +gem 'mqtt' diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..376974f --- /dev/null +++ b/public/index.html @@ -0,0 +1,10 @@ + + + + Scarecrow - Watches over the garden + + + + Hello Scarecrow + + 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 -- cgit v1.2.3