aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-07 23:51:13 -0500
committerTeddy Wing2015-12-07 23:51:13 -0500
commit2960922872c43c9fa9a7950687c5833820a9da64 (patch)
tree695f1f33c6dcf291e5c56b7e45e17f65b9547668
parent67d985ed3047fe9e73b2038a81d96876ab54b63a (diff)
downloadRuby-Web-Sessions-Exercise-2960922872c43c9fa9a7950687c5833820a9da64.tar.bz2
Add config.ru
Now that we use the `Sinatra::Base` application, we have to tell the server to run our application class. We do this by specifying a Rack config file. Now instead of running $ ruby app.rb to start the app server, we run $ rackup
-rw-r--r--config.ru3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.ru b/config.ru
new file mode 100644
index 0000000..eae1e13
--- /dev/null
+++ b/config.ru
@@ -0,0 +1,3 @@
+require './app'
+
+run App