diff options
-rwxr-xr-x[-rw-r--r--] | up-www.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/up-www.rb b/up-www.rb index 049f897..53061b8 100644..100755 --- a/up-www.rb +++ b/up-www.rb @@ -2,7 +2,16 @@ require "sinatra" require "zipf" -require "./up" +$:.unshift File.dirname(__FILE__) +require "up" + +if ENV['APP_ENV'] == :production + set :port, 80 + set :bind, "0.0.0.0" +else + set :port, 8080 + set :bind, "127.0.0.1" +end configure do hosts = {} @@ -56,7 +65,9 @@ end get '/' do out =<<EOS +<html> <head> + <meta name="viewport" content="width=device-width; initial-scale=1.0" /> <style type="text/css"> .box { border:2px dashed black; float:left; |