浏览代码

Set prod environment

master
Dylan Baker 5 年前
父节点
当前提交
0dcce5dc33
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      web/server.rb

+ 2
- 0
web/server.rb 查看文件

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

正在加载...
取消
保存