config vars more suited for heroku. not overwritten
This commit is contained in:
parent
9f401e3817
commit
666750a72a
|
@ -46,7 +46,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def check_public_access
|
||||
require_user unless ENV['PUBLIC'] == 'true'
|
||||
require_user if ENV['PRIVATE'] == 'true'
|
||||
end
|
||||
|
||||
def current_user_session
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title><%= ENV['TITLE'] %></title>
|
||||
<title><%= ENV['TITLE'] || "Photos" %></title>
|
||||
<%= yield :head %>
|
||||
<%= stylesheet_link_tag 'application' %>
|
||||
</head>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
ENV['PUBLIC'] = 'true'
|
||||
ENV['TITLE'] = 'photo'
|
||||
#ENV['PRIVATE'] = 'true'
|
||||
#ENV['TITLE'] = 'photo'
|
||||
#ENV['HEROKU'] = 'true'
|
||||
#ENV['S3_KEY'] = ''
|
||||
#ENV['S3_SECRET'] = ''
|
||||
|
|
Loading…
Reference in a new issue