Browse Source

Run app if script called directly

master
Dylan Baker 5 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
       !!session[:user_id]
79
       !!session[:user_id]
80
     end
80
     end
81
   end
81
   end
82
+
83
+  run! if __FILE__ == $0
82
 end
84
 end

Loading…
Cancel
Save