bakeware 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +45 -36
- data/README.md +3 -1
- data/bakeware.gemspec +1 -1
- data/features/heroku_true.feature +1 -1
- data/features/meaty_true.feature +9 -0
- data/features/step_definitions/bakeware_steps.rb +6 -10
- data/lib/bakeware/app_builder.rb +10 -2
- data/lib/bakeware/generators/app_generator.rb +9 -2
- data/lib/bakeware/version.rb +1 -1
- data/templates/Gemfile_extra_meat +2 -0
- data/templates/asset_sync +22 -0
- data/templates/newrelic_config +255 -0
- data/templates/s3yml +5 -0
- data/templates/timeout +1 -0
- metadata +10 -6
- data/features/clearance_false.feature +0 -10
data/Gemfile.lock
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bakeware (1.1.
|
|
4
|
+
bakeware (1.1.6)
|
|
5
5
|
bundler (>= 1.1)
|
|
6
6
|
hub (~> 1.10.2)
|
|
7
|
-
rails (
|
|
7
|
+
rails (>= 3.2.11)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: http://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
actionmailer (3.2.
|
|
13
|
-
actionpack (= 3.2.
|
|
12
|
+
actionmailer (3.2.11)
|
|
13
|
+
actionpack (= 3.2.11)
|
|
14
14
|
mail (~> 2.4.4)
|
|
15
|
-
actionpack (3.2.
|
|
16
|
-
activemodel (= 3.2.
|
|
17
|
-
activesupport (= 3.2.
|
|
15
|
+
actionpack (3.2.11)
|
|
16
|
+
activemodel (= 3.2.11)
|
|
17
|
+
activesupport (= 3.2.11)
|
|
18
18
|
builder (~> 3.0.0)
|
|
19
19
|
erubis (~> 2.7.0)
|
|
20
20
|
journey (~> 1.0.4)
|
|
21
21
|
rack (~> 1.4.0)
|
|
22
22
|
rack-cache (~> 1.2)
|
|
23
23
|
rack-test (~> 0.6.1)
|
|
24
|
-
sprockets (~> 2.1
|
|
25
|
-
activemodel (3.2.
|
|
26
|
-
activesupport (= 3.2.
|
|
24
|
+
sprockets (~> 2.2.1)
|
|
25
|
+
activemodel (3.2.11)
|
|
26
|
+
activesupport (= 3.2.11)
|
|
27
27
|
builder (~> 3.0.0)
|
|
28
|
-
activerecord (3.2.
|
|
29
|
-
activemodel (= 3.2.
|
|
30
|
-
activesupport (= 3.2.
|
|
28
|
+
activerecord (3.2.11)
|
|
29
|
+
activemodel (= 3.2.11)
|
|
30
|
+
activesupport (= 3.2.11)
|
|
31
31
|
arel (~> 3.0.2)
|
|
32
32
|
tzinfo (~> 0.3.29)
|
|
33
|
-
activeresource (3.2.
|
|
34
|
-
activemodel (= 3.2.
|
|
35
|
-
activesupport (= 3.2.
|
|
36
|
-
activesupport (3.2.
|
|
33
|
+
activeresource (3.2.11)
|
|
34
|
+
activemodel (= 3.2.11)
|
|
35
|
+
activesupport (= 3.2.11)
|
|
36
|
+
activesupport (3.2.11)
|
|
37
37
|
i18n (~> 0.6)
|
|
38
38
|
multi_json (~> 1.0)
|
|
39
39
|
arel (3.0.2)
|
|
@@ -57,7 +57,7 @@ GEM
|
|
|
57
57
|
gherkin (2.9.3)
|
|
58
58
|
json (>= 1.4.6)
|
|
59
59
|
hike (1.2.1)
|
|
60
|
-
hub (1.10.
|
|
60
|
+
hub (1.10.4)
|
|
61
61
|
i18n (0.6.1)
|
|
62
62
|
journey (1.0.4)
|
|
63
63
|
json (1.6.6)
|
|
@@ -66,49 +66,58 @@ GEM
|
|
|
66
66
|
mime-types (~> 1.16)
|
|
67
67
|
treetop (~> 1.4.8)
|
|
68
68
|
mime-types (1.19)
|
|
69
|
-
multi_json (1.
|
|
69
|
+
multi_json (1.5.0)
|
|
70
70
|
polyglot (0.3.3)
|
|
71
|
-
rack (1.4.
|
|
71
|
+
rack (1.4.3)
|
|
72
72
|
rack-cache (1.2)
|
|
73
73
|
rack (>= 0.4)
|
|
74
74
|
rack-ssl (1.3.2)
|
|
75
75
|
rack
|
|
76
|
-
rack-test (0.6.
|
|
76
|
+
rack-test (0.6.2)
|
|
77
77
|
rack (>= 1.0)
|
|
78
|
-
rails (3.2.
|
|
79
|
-
actionmailer (= 3.2.
|
|
80
|
-
actionpack (= 3.2.
|
|
81
|
-
activerecord (= 3.2.
|
|
82
|
-
activeresource (= 3.2.
|
|
83
|
-
activesupport (= 3.2.
|
|
78
|
+
rails (3.2.11)
|
|
79
|
+
actionmailer (= 3.2.11)
|
|
80
|
+
actionpack (= 3.2.11)
|
|
81
|
+
activerecord (= 3.2.11)
|
|
82
|
+
activeresource (= 3.2.11)
|
|
83
|
+
activesupport (= 3.2.11)
|
|
84
84
|
bundler (~> 1.0)
|
|
85
|
-
railties (= 3.2.
|
|
86
|
-
railties (3.2.
|
|
87
|
-
actionpack (= 3.2.
|
|
88
|
-
activesupport (= 3.2.
|
|
85
|
+
railties (= 3.2.11)
|
|
86
|
+
railties (3.2.11)
|
|
87
|
+
actionpack (= 3.2.11)
|
|
88
|
+
activesupport (= 3.2.11)
|
|
89
89
|
rack-ssl (~> 1.3.2)
|
|
90
90
|
rake (>= 0.8.7)
|
|
91
91
|
rdoc (~> 3.4)
|
|
92
92
|
thor (>= 0.14.6, < 2.0)
|
|
93
|
-
rake (0.
|
|
93
|
+
rake (10.0.3)
|
|
94
94
|
rdoc (3.12)
|
|
95
95
|
json (~> 1.4)
|
|
96
|
-
|
|
96
|
+
rspec (2.12.0)
|
|
97
|
+
rspec-core (~> 2.12.0)
|
|
98
|
+
rspec-expectations (~> 2.12.0)
|
|
99
|
+
rspec-mocks (~> 2.12.0)
|
|
100
|
+
rspec-core (2.12.2)
|
|
101
|
+
rspec-expectations (2.12.1)
|
|
102
|
+
diff-lcs (~> 1.1.3)
|
|
103
|
+
rspec-mocks (2.12.1)
|
|
104
|
+
sprockets (2.2.2)
|
|
97
105
|
hike (~> 1.2)
|
|
106
|
+
multi_json (~> 1.0)
|
|
98
107
|
rack (~> 1.0)
|
|
99
108
|
tilt (~> 1.1, != 1.3.0)
|
|
100
109
|
term-ansicolor (1.0.7)
|
|
101
110
|
thor (0.16.0)
|
|
102
111
|
tilt (1.3.3)
|
|
103
|
-
treetop (1.4.
|
|
112
|
+
treetop (1.4.12)
|
|
104
113
|
polyglot
|
|
105
114
|
polyglot (>= 0.3.1)
|
|
106
|
-
tzinfo (0.3.
|
|
115
|
+
tzinfo (0.3.35)
|
|
107
116
|
|
|
108
117
|
PLATFORMS
|
|
109
118
|
ruby
|
|
110
119
|
|
|
111
120
|
DEPENDENCIES
|
|
112
121
|
aruba (~> 0.4.11)
|
|
122
|
+
bakeware!
|
|
113
123
|
cucumber (~> 1.1.9)
|
|
114
|
-
backware!
|
data/README.md
CHANGED
|
@@ -45,9 +45,11 @@ This comes with:
|
|
|
45
45
|
* [challah-facebook](/jdtornow/challah-facebook) extends Challah for FB authentication
|
|
46
46
|
* [Compass](/chriseppstein/compass) for Sass mixins and standardization
|
|
47
47
|
* [haml](/haml/haml) for haml - because we all should use it
|
|
48
|
+
* [hirefireapp](/meskyanichi/hirefireapp) for auto scaling dynos on heroku
|
|
48
49
|
* [newrelic_rpm](/newrelic/rpm) for analytics about the performance of your app
|
|
49
50
|
* [Paperclip](/thoughtbot/paperclip) for file uploads
|
|
50
51
|
* [pg](/ged/ruby-pg) for PostgreSQL
|
|
52
|
+
* [rack-timeout](/kch/rack-timeout) for killing your app's hung processes before heroku times out (set to 29 seconds)
|
|
51
53
|
* [redis](/antirez/redis) for redis
|
|
52
54
|
* [resque](/defunkt/resque) for resque background processing
|
|
53
55
|
* [Unicorn](/defunkt/unicorn) for a better http server
|
|
@@ -85,7 +87,7 @@ You can optionally create Heroku staging and production apps:
|
|
|
85
87
|
This has the same effect as running:
|
|
86
88
|
|
|
87
89
|
heroku create projectname-staging --remote staging
|
|
88
|
-
heroku create projectname
|
|
90
|
+
heroku create projectname --remote production
|
|
89
91
|
|
|
90
92
|
Github
|
|
91
93
|
------
|
data/bakeware.gemspec
CHANGED
|
@@ -26,7 +26,7 @@ We use it at Oven Bits for most of our apps. YMMV, but we get decent mileage out
|
|
|
26
26
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
27
27
|
s.extra_rdoc_files = %w[README.md LICENSE]
|
|
28
28
|
|
|
29
|
-
s.add_dependency 'rails', '>= 3.2.
|
|
29
|
+
s.add_dependency 'rails', '>= 3.2.11'
|
|
30
30
|
s.add_dependency 'bundler', '>= 1.1'
|
|
31
31
|
s.add_dependency 'hub', '~> 1.10.2'
|
|
32
32
|
|
|
@@ -60,16 +60,6 @@ Then 'I can cleanly rake the project' do
|
|
|
60
60
|
}
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
Then /^"(.*)" should not be installed$/ do |gem_name|
|
|
64
|
-
in_current_dir do
|
|
65
|
-
system("bundle show #{gem_name} 2>&1 > /dev/null").should be_false
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
Then /^"(.*)" should not be included in "(.*)"$/ do |content, file_path|
|
|
70
|
-
check_file_content file_path, content, false
|
|
71
|
-
end
|
|
72
|
-
|
|
73
63
|
Then /^the "([^"]*)" Heroku app should exist$/ do |app_name|
|
|
74
64
|
FakeHeroku.should have_created_app(app_name)
|
|
75
65
|
end
|
|
@@ -77,3 +67,9 @@ end
|
|
|
77
67
|
Then /^the "([^"]*)" Github repo should exist$/ do |repo_name|
|
|
78
68
|
FakeGithub.should have_created_repo(repo_name)
|
|
79
69
|
end
|
|
70
|
+
|
|
71
|
+
Then 'unicorn should be installed' do
|
|
72
|
+
in_current_dir do
|
|
73
|
+
system("bundle show unicorn 2>&1 > /dev/null").should be_true
|
|
74
|
+
end
|
|
75
|
+
end
|
data/lib/bakeware/app_builder.rb
CHANGED
|
@@ -94,6 +94,15 @@ module Bakeware
|
|
|
94
94
|
|
|
95
95
|
def add_extra_config
|
|
96
96
|
copy_file 'unicorn_config', 'config/unicorn.rb'
|
|
97
|
+
copy_file 'newrelic_config', 'config/newrelic.yml'
|
|
98
|
+
copy_file 's3yml', 'config/s3.yml'
|
|
99
|
+
copy_file 'asset_sync', 'config/initializers/asset_sync.rb'
|
|
100
|
+
copy_file 'timeout', 'config/initializers/timeout.rb'
|
|
101
|
+
copy_file 'Procfile', 'Procfile'
|
|
102
|
+
inject_into_file 'Procfile', "worker: env QUEUE=* bundle exec rake resque:work",
|
|
103
|
+
:after => "\n"
|
|
104
|
+
replace_in_file 'Procfile',
|
|
105
|
+
'web: bundle exec rails server thin -p $PORT','web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb'
|
|
97
106
|
end
|
|
98
107
|
|
|
99
108
|
def configure_time_zone
|
|
@@ -121,7 +130,6 @@ module Bakeware
|
|
|
121
130
|
|
|
122
131
|
def setup_foreman
|
|
123
132
|
copy_file 'sample.env', 'sample.env'
|
|
124
|
-
copy_file 'Procfile', 'Procfile'
|
|
125
133
|
end
|
|
126
134
|
|
|
127
135
|
def setup_stylesheets
|
|
@@ -151,7 +159,7 @@ module Bakeware
|
|
|
151
159
|
|
|
152
160
|
def create_heroku_apps
|
|
153
161
|
path_addition = override_path_for_tests
|
|
154
|
-
run "#{path_addition} heroku create #{app_name}
|
|
162
|
+
run "#{path_addition} heroku create #{app_name} --remote=production"
|
|
155
163
|
run "#{path_addition} heroku create #{app_name}-staging --remote=staging"
|
|
156
164
|
end
|
|
157
165
|
|
|
@@ -94,7 +94,7 @@ module Bakeware
|
|
|
94
94
|
build :add_meaty_gems
|
|
95
95
|
build :add_extra_config
|
|
96
96
|
end
|
|
97
|
-
say '
|
|
97
|
+
say 'preheating the oven - BE PATIENT'
|
|
98
98
|
|
|
99
99
|
bundle_command 'install --binstubs=bin/stubs'
|
|
100
100
|
end
|
|
@@ -174,7 +174,14 @@ module Bakeware
|
|
|
174
174
|
|
|
175
175
|
def outro
|
|
176
176
|
say 'Congratulations! You just baked up a project with bakeware.'
|
|
177
|
-
say "Remember to run 'rails generate airbrake' with your API key."
|
|
177
|
+
say "Remember to run 'rails generate airbrake' with your airbrake API key. Also, a newrelic standard config file was automatically setup for you."
|
|
178
|
+
if options[:meaty]
|
|
179
|
+
say "Since you went meaty, a standard unicorn config file was setup for you as well."
|
|
180
|
+
say "And you baked some challah (nice!), so don't forget to finish setting that up."
|
|
181
|
+
end
|
|
182
|
+
if options[:heroku]
|
|
183
|
+
say "Lastly, don't forget to add your heroku config vars for staging and production (for s3, etc)"
|
|
184
|
+
end
|
|
178
185
|
end
|
|
179
186
|
|
|
180
187
|
def run_bundle
|
data/lib/bakeware/version.rb
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
AssetSync.configure do |config|
|
|
2
|
+
config.fog_provider = 'AWS'
|
|
3
|
+
config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
|
|
4
|
+
config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
|
|
5
|
+
config.fog_directory = ENV['FOG_DIRECTORY']
|
|
6
|
+
|
|
7
|
+
# Increase upload performance by configuring your region
|
|
8
|
+
# config.fog_region = 'eu-west-1'
|
|
9
|
+
#
|
|
10
|
+
# Don't delete files from the store
|
|
11
|
+
config.existing_remote_files = "keep"
|
|
12
|
+
#
|
|
13
|
+
# Automatically replace files with their equivalent gzip compressed version
|
|
14
|
+
config.gzip_compression = true
|
|
15
|
+
#
|
|
16
|
+
# Use the Rails generated 'manifest.yml' file to produce the list of files to
|
|
17
|
+
# upload instead of searching the assets directory.
|
|
18
|
+
# config.manifest = true
|
|
19
|
+
#
|
|
20
|
+
# Fail silently. Useful for environments such as Heroku
|
|
21
|
+
config.fail_silently = true
|
|
22
|
+
end
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Here are the settings that are common to all environments
|
|
2
|
+
common: &default_settings
|
|
3
|
+
# ============================== LICENSE KEY ===============================
|
|
4
|
+
|
|
5
|
+
# You must specify the license key associated with your New Relic
|
|
6
|
+
# account. This key binds your Agent's data to your account in the
|
|
7
|
+
# New Relic service.
|
|
8
|
+
license_key: '<%= ENV["NEW_RELIC_LICENSE_KEY"] %>'
|
|
9
|
+
|
|
10
|
+
# Agent Enabled (Rails Only)
|
|
11
|
+
# Use this setting to force the agent to run or not run.
|
|
12
|
+
# Default is 'auto' which means the agent will install and run only
|
|
13
|
+
# if a valid dispatcher such as Mongrel is running. This prevents
|
|
14
|
+
# it from running with Rake or the console. Set to false to
|
|
15
|
+
# completely turn the agent off regardless of the other settings.
|
|
16
|
+
# Valid values are true, false and auto.
|
|
17
|
+
#
|
|
18
|
+
# agent_enabled: auto
|
|
19
|
+
|
|
20
|
+
# Application Name Set this to be the name of your application as
|
|
21
|
+
# you'd like it show up in New Relic. The service will then auto-map
|
|
22
|
+
# instances of your application into an "application" on your
|
|
23
|
+
# dashboard page. If you want to map this instance into multiple
|
|
24
|
+
# apps, like "AJAX Requests" and "All UI" then specify a semicolon
|
|
25
|
+
# separated list of up to three distinct names, or a yaml list.
|
|
26
|
+
# Defaults to the capitalized RAILS_ENV or RACK_ENV (i.e.,
|
|
27
|
+
# Production, Staging, etc)
|
|
28
|
+
#
|
|
29
|
+
# Example:
|
|
30
|
+
#
|
|
31
|
+
# app_name:
|
|
32
|
+
# - Ajax Service
|
|
33
|
+
# - All Services
|
|
34
|
+
#
|
|
35
|
+
app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>
|
|
36
|
+
|
|
37
|
+
# When "true", the agent collects performance data about your
|
|
38
|
+
# application and reports this data to the New Relic service at
|
|
39
|
+
# newrelic.com. This global switch is normally overridden for each
|
|
40
|
+
# environment below. (formerly called 'enabled')
|
|
41
|
+
monitor_mode: true
|
|
42
|
+
|
|
43
|
+
# Developer mode should be off in every environment but
|
|
44
|
+
# development as it has very high overhead in memory.
|
|
45
|
+
developer_mode: false
|
|
46
|
+
|
|
47
|
+
# The newrelic agent generates its own log file to keep its logging
|
|
48
|
+
# information separate from that of your application. Specify its
|
|
49
|
+
# log level here.
|
|
50
|
+
log_level: info
|
|
51
|
+
|
|
52
|
+
# Optionally set the path to the log file This is expanded from the
|
|
53
|
+
# root directory (may be relative or absolute, e.g. 'log/' or
|
|
54
|
+
# '/var/log/') The agent will attempt to create this directory if it
|
|
55
|
+
# does not exist.
|
|
56
|
+
# log_file_path: 'log'
|
|
57
|
+
|
|
58
|
+
# Optionally set the name of the log file, defaults to 'newrelic_agent.log'
|
|
59
|
+
# log_file_name: 'newrelic_agent.log'
|
|
60
|
+
|
|
61
|
+
# The newrelic agent communicates with the service via http by
|
|
62
|
+
# default. If you want to communicate via https to increase
|
|
63
|
+
# security, then turn on SSL by setting this value to true. Note,
|
|
64
|
+
# this will result in increased CPU overhead to perform the
|
|
65
|
+
# encryption involved in SSL communication, but this work is done
|
|
66
|
+
# asynchronously to the threads that process your application code,
|
|
67
|
+
# so it should not impact response times.
|
|
68
|
+
ssl: false
|
|
69
|
+
|
|
70
|
+
# EXPERIMENTAL: enable verification of the SSL certificate sent by
|
|
71
|
+
# the server. This setting has no effect unless SSL is enabled
|
|
72
|
+
# above. This may block your application. Only enable it if the data
|
|
73
|
+
# you send us needs end-to-end verified certificates.
|
|
74
|
+
#
|
|
75
|
+
# This means we cannot cache the DNS lookup, so each request to the
|
|
76
|
+
# service will perform a lookup. It also means that we cannot
|
|
77
|
+
# use a non-blocking lookup, so in a worst case, if you have DNS
|
|
78
|
+
# problems, your app may block indefinitely.
|
|
79
|
+
# verify_certificate: true
|
|
80
|
+
|
|
81
|
+
# Set your application's Apdex threshold value with the 'apdex_t'
|
|
82
|
+
# setting, in seconds. The apdex_t value determines the buckets used
|
|
83
|
+
# to compute your overall Apdex score.
|
|
84
|
+
# Requests that take less than apdex_t seconds to process will be
|
|
85
|
+
# classified as Satisfying transactions; more than apdex_t seconds
|
|
86
|
+
# as Tolerating transactions; and more than four times the apdex_t
|
|
87
|
+
# value as Frustrating transactions.
|
|
88
|
+
# For more about the Apdex standard, see
|
|
89
|
+
# http://newrelic.com/docs/general/apdex
|
|
90
|
+
|
|
91
|
+
apdex_t: 0.5
|
|
92
|
+
|
|
93
|
+
#============================== Browser Monitoring ===============================
|
|
94
|
+
# New Relic Real User Monitoring gives you insight into the performance real users are
|
|
95
|
+
# experiencing with your website. This is accomplished by measuring the time it takes for
|
|
96
|
+
# your users' browsers to download and render your web pages by injecting a small amount
|
|
97
|
+
# of JavaScript code into the header and footer of each page.
|
|
98
|
+
browser_monitoring:
|
|
99
|
+
# By default the agent automatically injects the monitoring JavaScript
|
|
100
|
+
# into web pages. Set this attribute to false to turn off this behavior.
|
|
101
|
+
auto_instrument: true
|
|
102
|
+
|
|
103
|
+
# Proxy settings for connecting to the service.
|
|
104
|
+
#
|
|
105
|
+
# If a proxy is used, the host setting is required. Other settings
|
|
106
|
+
# are optional. Default port is 8080.
|
|
107
|
+
#
|
|
108
|
+
# proxy_host: hostname
|
|
109
|
+
# proxy_port: 8080
|
|
110
|
+
# proxy_user:
|
|
111
|
+
# proxy_pass:
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# Tells transaction tracer and error collector (when enabled)
|
|
115
|
+
# whether or not to capture HTTP params. When true, frameworks can
|
|
116
|
+
# exclude HTTP parameters from being captured.
|
|
117
|
+
# Rails: the RoR filter_parameter_logging excludes parameters
|
|
118
|
+
# Java: create a config setting called "ignored_params" and set it to
|
|
119
|
+
# a comma separated list of HTTP parameter names.
|
|
120
|
+
# ex: ignored_params: credit_card, ssn, password
|
|
121
|
+
capture_params: false
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
# Transaction tracer captures deep information about slow
|
|
125
|
+
# transactions and sends this to the service once a
|
|
126
|
+
# minute. Included in the transaction is the exact call sequence of
|
|
127
|
+
# the transactions including any SQL statements issued.
|
|
128
|
+
transaction_tracer:
|
|
129
|
+
|
|
130
|
+
# Transaction tracer is enabled by default. Set this to false to
|
|
131
|
+
# turn it off. This feature is only available at the Professional
|
|
132
|
+
# and above product levels.
|
|
133
|
+
enabled: true
|
|
134
|
+
|
|
135
|
+
# Threshold in seconds for when to collect a transaction
|
|
136
|
+
# trace. When the response time of a controller action exceeds
|
|
137
|
+
# this threshold, a transaction trace will be recorded and sent to
|
|
138
|
+
# the service. Valid values are any float value, or (default)
|
|
139
|
+
# "apdex_f", which will use the threshold for an dissatisfying
|
|
140
|
+
# Apdex controller action - four times the Apdex T value.
|
|
141
|
+
transaction_threshold: apdex_f
|
|
142
|
+
|
|
143
|
+
# When transaction tracer is on, SQL statements can optionally be
|
|
144
|
+
# recorded. The recorder has three modes, "off" which sends no
|
|
145
|
+
# SQL, "raw" which sends the SQL statement in its original form,
|
|
146
|
+
# and "obfuscated", which strips out numeric and string literals
|
|
147
|
+
record_sql: obfuscated
|
|
148
|
+
|
|
149
|
+
# Threshold in seconds for when to collect stack trace for a SQL
|
|
150
|
+
# call. In other words, when SQL statements exceed this threshold,
|
|
151
|
+
# then capture and send the current stack trace. This is
|
|
152
|
+
# helpful for pinpointing where long SQL calls originate from
|
|
153
|
+
stack_trace_threshold: 0.500
|
|
154
|
+
|
|
155
|
+
# Determines whether the agent will capture query plans for slow
|
|
156
|
+
# SQL queries. Only supported in mysql and postgres. Should be
|
|
157
|
+
# set to false when using other adapters.
|
|
158
|
+
# explain_enabled: true
|
|
159
|
+
|
|
160
|
+
# Threshold for query execution time below which query plans will not
|
|
161
|
+
# not be captured. Relevant only when `explain_enabled` is true.
|
|
162
|
+
# explain_threshold: 0.5
|
|
163
|
+
|
|
164
|
+
# Error collector captures information about uncaught exceptions and
|
|
165
|
+
# sends them to the service for viewing
|
|
166
|
+
error_collector:
|
|
167
|
+
|
|
168
|
+
# Error collector is enabled by default. Set this to false to turn
|
|
169
|
+
# it off. This feature is only available at the Professional and above
|
|
170
|
+
# product levels
|
|
171
|
+
enabled: true
|
|
172
|
+
|
|
173
|
+
# Rails Only - tells error collector whether or not to capture a
|
|
174
|
+
# source snippet around the place of the error when errors are View
|
|
175
|
+
# related.
|
|
176
|
+
capture_source: true
|
|
177
|
+
|
|
178
|
+
# To stop specific errors from reporting to New Relic, set this property
|
|
179
|
+
# to comma separated values. Default is to ignore routing errors
|
|
180
|
+
# which are how 404's get triggered.
|
|
181
|
+
#
|
|
182
|
+
ignore_errors: ActionController::RoutingError
|
|
183
|
+
|
|
184
|
+
# (Advanced) Uncomment this to ensure the cpu and memory samplers
|
|
185
|
+
# won't run. Useful when you are using the agent to monitor an
|
|
186
|
+
# external resource
|
|
187
|
+
# disable_samplers: true
|
|
188
|
+
|
|
189
|
+
# If you aren't interested in visibility in these areas, you can
|
|
190
|
+
# disable the instrumentation to reduce overhead.
|
|
191
|
+
#
|
|
192
|
+
# disable_view_instrumentation: true
|
|
193
|
+
# disable_activerecord_instrumentation: true
|
|
194
|
+
# disable_memcache_instrumentation: true
|
|
195
|
+
# disable_dj: true
|
|
196
|
+
|
|
197
|
+
# If you're interested in capturing memcache keys as though they
|
|
198
|
+
# were SQL uncomment this flag. Note that this does increase
|
|
199
|
+
# overhead slightly on every memcached call, and can have security
|
|
200
|
+
# implications if your memcached keys are sensitive
|
|
201
|
+
# capture_memcache_keys: true
|
|
202
|
+
|
|
203
|
+
# Certain types of instrumentation such as GC stats will not work if
|
|
204
|
+
# you are running multi-threaded. Please let us know.
|
|
205
|
+
# multi_threaded = false
|
|
206
|
+
|
|
207
|
+
# Application Environments
|
|
208
|
+
# ------------------------------------------
|
|
209
|
+
# Environment specific settings are in this section.
|
|
210
|
+
# For Rails applications, RAILS_ENV is used to determine the environment
|
|
211
|
+
# For Java applications, pass -Dnewrelic.environment <environment> to set
|
|
212
|
+
# the environment
|
|
213
|
+
|
|
214
|
+
# NOTE if your application has other named environments, you should
|
|
215
|
+
# provide newrelic configuration settings for these environments here.
|
|
216
|
+
|
|
217
|
+
development:
|
|
218
|
+
<<: *default_settings
|
|
219
|
+
# Turn off communication to New Relic service in development mode (also
|
|
220
|
+
# 'enabled').
|
|
221
|
+
# NOTE: for initial evaluation purposes, you may want to temporarily
|
|
222
|
+
# turn the agent on in development mode.
|
|
223
|
+
monitor_mode: false
|
|
224
|
+
|
|
225
|
+
# Rails Only - when running in Developer Mode, the New Relic Agent will
|
|
226
|
+
# present performance information on the last 100 transactions you have
|
|
227
|
+
# executed since starting the mongrel.
|
|
228
|
+
# NOTE: There is substantial overhead when running in developer mode.
|
|
229
|
+
# Do not use for production or load testing.
|
|
230
|
+
developer_mode: true
|
|
231
|
+
|
|
232
|
+
# Enable textmate links
|
|
233
|
+
# textmate: true
|
|
234
|
+
|
|
235
|
+
test:
|
|
236
|
+
<<: *default_settings
|
|
237
|
+
# It almost never makes sense to turn on the agent when running
|
|
238
|
+
# unit, functional or integration tests or the like.
|
|
239
|
+
monitor_mode: false
|
|
240
|
+
|
|
241
|
+
# Turn on the agent in production for 24x7 monitoring. NewRelic
|
|
242
|
+
# testing shows an average performance impact of < 5 ms per
|
|
243
|
+
# transaction, you you can leave this on all the time without
|
|
244
|
+
# incurring any user-visible performance degradation.
|
|
245
|
+
production:
|
|
246
|
+
<<: *default_settings
|
|
247
|
+
monitor_mode: true
|
|
248
|
+
|
|
249
|
+
# Many applications have a staging environment which behaves
|
|
250
|
+
# identically to production. Support for that environment is provided
|
|
251
|
+
# here. By default, the staging environment has the agent turned on.
|
|
252
|
+
staging:
|
|
253
|
+
<<: *default_settings
|
|
254
|
+
monitor_mode: true
|
|
255
|
+
app_name: <%= ENV["NEW_RELIC_APP_NAME"] %> (Staging)
|
data/templates/s3yml
ADDED
data/templates/timeout
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Rack::Timeout.timeout = 29 # seconds -- heroku times out at 30
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bakeware
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-01-
|
|
12
|
+
date: 2013-01-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.2.
|
|
21
|
+
version: 3.2.11
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ! '>='
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 3.2.
|
|
29
|
+
version: 3.2.11
|
|
30
30
|
- !ruby/object:Gem::Dependency
|
|
31
31
|
name: bundler
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -110,9 +110,9 @@ files:
|
|
|
110
110
|
- Rakefile
|
|
111
111
|
- bakeware.gemspec
|
|
112
112
|
- bin/bakeware
|
|
113
|
-
- features/clearance_false.feature
|
|
114
113
|
- features/github_repo.feature
|
|
115
114
|
- features/heroku_true.feature
|
|
115
|
+
- features/meaty_true.feature
|
|
116
116
|
- features/rake_clean.feature
|
|
117
117
|
- features/step_definitions/bakeware_steps.rb
|
|
118
118
|
- features/support/bin/heroku
|
|
@@ -131,6 +131,7 @@ files:
|
|
|
131
131
|
- templates/README.md.erb
|
|
132
132
|
- templates/_flashes.html.erb
|
|
133
133
|
- templates/_javascript.html.erb
|
|
134
|
+
- templates/asset_sync
|
|
134
135
|
- templates/bakeware_gitignore
|
|
135
136
|
- templates/bakeware_layout.html.erb.erb
|
|
136
137
|
- templates/config_locales_en.yml
|
|
@@ -138,12 +139,15 @@ files:
|
|
|
138
139
|
- templates/errors.rb
|
|
139
140
|
- templates/import_scss_styles
|
|
140
141
|
- templates/javascripts/prefilled_input.js
|
|
142
|
+
- templates/newrelic_config
|
|
141
143
|
- templates/override_recipient_smtp.rb
|
|
142
144
|
- templates/postgresql_database.yml.erb
|
|
145
|
+
- templates/s3yml
|
|
143
146
|
- templates/sample.env
|
|
144
147
|
- templates/script_setup
|
|
145
148
|
- templates/simplecov_init.rb
|
|
146
149
|
- templates/time_formats.rb
|
|
150
|
+
- templates/timeout
|
|
147
151
|
- templates/unicorn_config
|
|
148
152
|
homepage: http://github.com/courtsimas/bakeware
|
|
149
153
|
licenses: []
|
|
@@ -171,9 +175,9 @@ signing_key:
|
|
|
171
175
|
specification_version: 3
|
|
172
176
|
summary: Generate a Rails app using Oven Bits' favorite flavors and ingredients.
|
|
173
177
|
test_files:
|
|
174
|
-
- features/clearance_false.feature
|
|
175
178
|
- features/github_repo.feature
|
|
176
179
|
- features/heroku_true.feature
|
|
180
|
+
- features/meaty_true.feature
|
|
177
181
|
- features/rake_clean.feature
|
|
178
182
|
- features/step_definitions/bakeware_steps.rb
|
|
179
183
|
- features/support/bin/heroku
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
@disable-bundler
|
|
2
|
-
Feature: Skipping Clearance
|
|
3
|
-
|
|
4
|
-
Scenario: --clearance=false
|
|
5
|
-
When I bake a project called "test_project" with:
|
|
6
|
-
| argument | value |
|
|
7
|
-
| --clearance | false |
|
|
8
|
-
And I cd to the "test_project" root
|
|
9
|
-
Then "clearance" should not be installed
|
|
10
|
-
And I can cleanly rake the project
|