config vars more suited for heroku. not overwritten

This commit is contained in:
Espen Antonsen 2010-10-10 20:09:30 +02:00
parent 9f401e3817
commit 666750a72a
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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>

View file

@ -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'] = ''