Allow running in production mode on dev machine

openid
Marcin Kulik 12 years ago
parent 4b707884ab
commit 6b53a25f0a

@ -2,8 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title><% if @title %><%= @title + " - "%><% end %>ascii.io</title>
<%= airbrake_javascript_notifier %>
<title><% if @title %><%= @title + " - " %><% end %>ascii.io</title>
<%= airbrake_javascript_notifier unless CFG.airbrake_api_key.blank? %>
<%= csrf_meta_tags %>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->

@ -1,7 +1,12 @@
Airbrake.configure do |config|
config.api_key = CFG.airbrake_api_key
config.host = CFG.airbrake_host
config.port = 80
config.secure = config.port == 443
config.development_environments = ['development', 'bugfix']
unless CFG.airbrake_api_key.blank?
config.api_key = CFG.airbrake_api_key
config.host = CFG.airbrake_host
config.port = 80
config.secure = config.port == 443
end
envs = ['development', 'bugfix']
envs << Rails.env if CFG.airbrake_api_key.blank?
config.development_environments = envs
end

Loading…
Cancel
Save