diff options
author | Joe Robinson <joe@lc8n.com> | 2019-02-16 20:27:40 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2019-02-16 20:27:40 +0000 |
commit | f0d35d959c4daa8bd9f71ff4594326ae78ab92c4 (patch) | |
tree | f8ac8ed2f0de4f655b8bc790c2d3d47d28b044ec | |
parent | 646f53e75355c3bb0a0db6455d91af98dc6abd61 (diff) |
Initial file structure
-rw-r--r-- | Gemfile | 4 | ||||
-rw-r--r-- | public/index.html | 10 | ||||
-rw-r--r-- | scarecrow.rb | 9 |
3 files changed, 23 insertions, 0 deletions
@@ -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 @@ +<html> + <head> + <title> + Scarecrow - Watches over the garden + </title> + </head> + <body> + Hello Scarecrow + </body> +</html> 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 |