Browse Source

Set prod environment

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

+ 2
- 0
web/server.rb View File

@@ -13,6 +13,8 @@ class VLVSearch < Sinatra::Base
13 13
       expire_after: 14_400,
14 14
       secret: ENV['SESSION_SECRET']
15 15
 
16
+  set :environment ENV['APP_ENV'] == 'production' ? :production : :development
17
+
16 18
   get '/' do
17 19
     redirect '/login' unless signed_in?
18 20
     params[:type] = 'threads'

Loading…
Cancel
Save