File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,13 @@ cybele project_name
28
28
When the initialization is completed, there will be some required settings.
29
29
30
30
* Set .env.local variables
31
- * Set access_token in config/initializers/rollbar.rb
31
+ * Set ENV[ 'ROLLBAR_ACCESS_TOKEN'] for Rollbar.
32
+ * If Sidekiq will be use, you must open sidekiq option in config/initializers/rollbar.rb like the following:
33
+ ``` ruby
34
+ config.use_sidekiq ' queue' => ' default'
35
+ ```
36
+ * If you don' t want to use Rollbar in development environment, you can disable for development environment in
37
+ in config/initializers/rollbar.rb
32
38
* Set default values for is_active, time_zone variable using in User and Admin model migrations db/migrate/*.rb
33
39
* Change username and password in config/settings.yml
34
40
* In public folder run this command ln -s ../VERSION.txt VERSION.txt
Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ def fill_settings_yml
94
94
prepend_file 'config/settings.yml' , config
95
95
end
96
96
97
+ def generate_rollbar
98
+ generate 'rollbar'
99
+ end
100
+
97
101
private
98
102
99
103
def configure_environment ( rails_env , config )
Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ def fill_settings_yml
120
120
build :fill_settings_yml
121
121
end
122
122
123
+ def setup_rollbar
124
+ say 'Generate rollbar' , :green
125
+ build :generate_rollbar
126
+ end
127
+
123
128
def goodbye
124
129
say 'Congratulations! That\'s all...' , :green
125
130
end
Original file line number Diff line number Diff line change 3
3
gem 'recipient_interceptor', '~> 0.1.2'
4
4
5
5
# RailsConfig helps you easily manage environment specific Rails settings in an easy and usable manner
6
- gem 'config', '~> 1.5'
6
+ gem 'config', '~> 1.5'
7
+
8
+ # Rollbar is an error tracking service.
9
+ gem 'rollbar', '~> 2.15', '> = 2.15.4'
You can’t perform that action at this time.
0 commit comments