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