Browse Source

Run app if script called directly

master
Dylan Baker 4 years ago
parent
commit
7a0561e08b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      web/server.rb

+ 2
- 0
web/server.rb View File

@@ -79,4 +79,6 @@ class VLVSearch < Sinatra::Base
79 79
       !!session[:user_id]
80 80
     end
81 81
   end
82
+
83
+  run! if __FILE__ == $0
82 84
 end

Loading…
Cancel
Save