silvermind_deployment 0.0.8 → 0.0.9
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.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/generators/silvermind_deployment/install/install_generator.rb +11 -4
- data/lib/generators/silvermind_deployment/install/templates/{deploy.rb → config/deploy.rb} +0 -0
- data/lib/generators/silvermind_deployment/install/templates/{deploy → config/deploy}/production.rb +0 -0
- data/lib/generators/silvermind_deployment/install/templates/{eye → config/eye}/production.rb +0 -0
- data/lib/generators/silvermind_deployment/install/templates/{unicorn.rb → config/unicorn.rb} +0 -0
- data/lib/generators/silvermind_deployment/install/templates/initializers/rollbar.rb +53 -0
- data/lib/silvermind_deployment/version.rb +1 -1
- data/silvermind_deployment.gemspec +1 -0
- metadata +20 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a11ce7c9064a5afe4b261d0943d9a54a3f300f
|
4
|
+
data.tar.gz: 5917bad8902b18636cfd3c84b20b9e3fa3289cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a20fcb35612c452ff9cc4270da823452a2dec61024ec08cdd4ed0f41972128e4df8a1d9f438bd64431aa7c44b1706702f7c417c213f4b4cfdf51ffac73fcb57
|
7
|
+
data.tar.gz: 7dd46ad20973def100a37b8b442525f9bb63292489c1a43888546eaee780f0da900713a73926cf796eadca82086f4b4d7fbca978b37be65acf773cce18c3762a
|
data/README.md
CHANGED
@@ -27,6 +27,11 @@ Or install it yourself as:
|
|
27
27
|
|
28
28
|
add gem, bundle, copy configs, deploy
|
29
29
|
|
30
|
+
execute to copy the files:
|
31
|
+
|
32
|
+
$ bundle exec rails generate silvermind_deployment:install
|
33
|
+
|
34
|
+
|
30
35
|
## Development
|
31
36
|
|
32
37
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -7,13 +7,20 @@ module SilvermindDeployment
|
|
7
7
|
source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
8
8
|
|
9
9
|
def copy_unicorn
|
10
|
+
# Capistrano
|
10
11
|
template 'Capfile', 'Capfile'
|
11
|
-
template 'deploy.rb', 'config/deploy.rb'
|
12
|
-
template 'deploy/production.rb', 'config/deploy/production.rb'
|
12
|
+
template 'config/deploy.rb', 'config/deploy.rb'
|
13
|
+
template 'config/deploy/production.rb', 'config/deploy/production.rb'
|
13
14
|
|
14
|
-
|
15
|
+
# Eye
|
16
|
+
template 'config/eye/production.rb', 'config/eye/production.rb'
|
17
|
+
|
18
|
+
# Unicorn
|
19
|
+
template 'config/unicorn.rb', 'config/unicorn.rb'
|
20
|
+
|
21
|
+
# Rollbar
|
22
|
+
template 'initializers/rollbar.rb', 'initializers/rollbar.rb'
|
15
23
|
|
16
|
-
template 'unicorn.rb', 'config/unicorn.rb'
|
17
24
|
end
|
18
25
|
|
19
26
|
end
|
File without changes
|
data/lib/generators/silvermind_deployment/install/templates/{deploy → config/deploy}/production.rb
RENAMED
File without changes
|
data/lib/generators/silvermind_deployment/install/templates/{eye → config/eye}/production.rb
RENAMED
File without changes
|
data/lib/generators/silvermind_deployment/install/templates/{unicorn.rb → config/unicorn.rb}
RENAMED
File without changes
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'rollbar/rails'
|
2
|
+
Rollbar.configure do |config|
|
3
|
+
# Without configuration, Rollbar is enabled in all environments.
|
4
|
+
# To disable in specific environments, set config.enabled=false.
|
5
|
+
|
6
|
+
config.access_token = Rails.application.secrets.rollbar_server_side_token
|
7
|
+
|
8
|
+
# Here we'll disable in 'test':
|
9
|
+
if Rails.env.test? or Rails.env.development?
|
10
|
+
config.enabled = false
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
# By default, Rollbar will try to call the `current_user` controller method
|
15
|
+
# to fetch the logged-in user object, and then call that object's `id`,
|
16
|
+
# `username`, and `email` methods to fetch those properties. To customize:
|
17
|
+
# config.person_method = "my_current_user"
|
18
|
+
# config.person_id_method = "my_id"
|
19
|
+
# config.person_username_method = "my_username"
|
20
|
+
# config.person_email_method = "my_email"
|
21
|
+
|
22
|
+
# If you want to attach custom data to all exception and message reports,
|
23
|
+
# provide a lambda like the following. It should return a hash.
|
24
|
+
# config.custom_data_method = lambda { {:some_key => "some_value" } }
|
25
|
+
|
26
|
+
# Add exception class names to the exception_level_filters hash to
|
27
|
+
# change the level that exception is reported at. Note that if an exception
|
28
|
+
# has already been reported and logged the level will need to be changed
|
29
|
+
# via the rollbar interface.
|
30
|
+
# Valid levels: 'critical', 'error', 'warning', 'info', 'debug', 'ignore'
|
31
|
+
# 'ignore' will cause the exception to not be reported at all.
|
32
|
+
# config.exception_level_filters.merge!('MyCriticalException' => 'critical')
|
33
|
+
#
|
34
|
+
# You can also specify a callable, which will be called with the exception instance.
|
35
|
+
# config.exception_level_filters.merge!('MyCriticalException' => lambda { |e| 'critical' })
|
36
|
+
|
37
|
+
# Enable asynchronous reporting (uses girl_friday or Threading if girl_friday
|
38
|
+
# is not installed)
|
39
|
+
# config.use_async = true
|
40
|
+
# Supply your own async handler:
|
41
|
+
# config.async_handler = Proc.new { |payload|
|
42
|
+
# Thread.new { Rollbar.process_payload_safely(payload) }
|
43
|
+
# }
|
44
|
+
|
45
|
+
# Enable asynchronous reporting (using sucker_punch)
|
46
|
+
# config.use_sucker_punch
|
47
|
+
|
48
|
+
# Enable delayed reporting (using Sidekiq)
|
49
|
+
# config.use_sidekiq 'queue' => 'default'
|
50
|
+
# You can supply custom Sidekiq options:
|
51
|
+
# config.use_sidekiq 'queue' => 'my_queue'
|
52
|
+
|
53
|
+
end
|
@@ -47,6 +47,7 @@ Gem::Specification.new do |spec|
|
|
47
47
|
#####################################################
|
48
48
|
|
49
49
|
spec.add_runtime_dependency "rollbar"
|
50
|
+
spec.add_runtime_dependency "newrelic_rpm"
|
50
51
|
|
51
52
|
#####################################################
|
52
53
|
# Capistrano Deployment
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: silvermind_deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Severin Ulrich
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: newrelic_rpm
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: capistrano
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,10 +184,11 @@ files:
|
|
170
184
|
- lib/generators/silvermind_deployment/install/USAGE
|
171
185
|
- lib/generators/silvermind_deployment/install/install_generator.rb
|
172
186
|
- lib/generators/silvermind_deployment/install/templates/Capfile
|
173
|
-
- lib/generators/silvermind_deployment/install/templates/deploy.rb
|
174
|
-
- lib/generators/silvermind_deployment/install/templates/deploy/production.rb
|
175
|
-
- lib/generators/silvermind_deployment/install/templates/eye/production.rb
|
176
|
-
- lib/generators/silvermind_deployment/install/templates/unicorn.rb
|
187
|
+
- lib/generators/silvermind_deployment/install/templates/config/deploy.rb
|
188
|
+
- lib/generators/silvermind_deployment/install/templates/config/deploy/production.rb
|
189
|
+
- lib/generators/silvermind_deployment/install/templates/config/eye/production.rb
|
190
|
+
- lib/generators/silvermind_deployment/install/templates/config/unicorn.rb
|
191
|
+
- lib/generators/silvermind_deployment/install/templates/initializers/rollbar.rb
|
177
192
|
- lib/silvermind_deployment.rb
|
178
193
|
- lib/silvermind_deployment/version.rb
|
179
194
|
- silvermind_deployment.gemspec
|