mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
Remove Heroku specific whacamole and rails_12factor gems [SCI-11588] (#8259)
This commit is contained in:
parent
87677ae3f8
commit
4f0e9b1208
4 changed files with 0 additions and 25 deletions
2
Gemfile
2
Gemfile
|
@ -136,8 +136,6 @@ end
|
|||
|
||||
group :production do
|
||||
gem 'puma'
|
||||
gem 'rails_12factor'
|
||||
gem 'whacamole'
|
||||
end
|
||||
|
||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||
|
|
|
@ -586,15 +586,10 @@ GEM
|
|||
rails-html-sanitizer (1.6.1)
|
||||
loofah (~> 2.21)
|
||||
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
||||
rails_12factor (0.0.3)
|
||||
rails_serve_static_assets
|
||||
rails_stdout_logging
|
||||
rails_autolink (1.1.8)
|
||||
actionview (> 3.1)
|
||||
activesupport (> 3.1)
|
||||
railties (> 3.1)
|
||||
rails_serve_static_assets (0.0.5)
|
||||
rails_stdout_logging (0.0.5)
|
||||
railties (7.0.8.7)
|
||||
actionpack (= 7.0.8.7)
|
||||
activesupport (= 7.0.8.7)
|
||||
|
@ -760,7 +755,6 @@ GEM
|
|||
websocket-driver (0.7.6)
|
||||
websocket-extensions (>= 0.1.0)
|
||||
websocket-extensions (0.1.5)
|
||||
whacamole (1.2.0)
|
||||
wicked_pdf (2.7.0)
|
||||
activesupport
|
||||
xpath (3.2.0)
|
||||
|
@ -853,7 +847,6 @@ DEPENDENCIES
|
|||
rack-cors
|
||||
rails (~> 7.0.8)
|
||||
rails-controller-testing
|
||||
rails_12factor
|
||||
rails_autolink (~> 1.1, >= 1.1.6)
|
||||
recaptcha
|
||||
rgl
|
||||
|
@ -883,7 +876,6 @@ DEPENDENCIES
|
|||
underscore-rails
|
||||
view_component
|
||||
webmock
|
||||
whacamole
|
||||
wicked_pdf
|
||||
zip-zip
|
||||
|
||||
|
|
1
Procfile
1
Procfile
|
@ -1,3 +1,2 @@
|
|||
web: bundle exec puma -C config/puma.rb
|
||||
worker: bundle exec rake jobs:work
|
||||
whacamole: bundle exec whacamole -c ./config/whacamole.rb
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# https://github.com/arches/whacamole
|
||||
#
|
||||
# Steps to setup this on your heroku instance, this will affect only the worker
|
||||
#
|
||||
# 1) set the env variables (api token: > heroku auth:token)
|
||||
# 2) > heroku labs:enable log-runtime-metrics --app YOUR_APP_NAME
|
||||
# 3) > heroku ps:scale whacamole=1 --app YOUR_APP_NAME
|
||||
|
||||
Whacamole.configure(ENV['HEROKU_APP_NAME']) do |config|
|
||||
config.api_token = ENV['HEROKU_API_TOKEN']
|
||||
config.dynos = %w{worker}
|
||||
config.restart_threshold = ENV['WHACAMOLE_DYNO_RESTART_THRESHOLD'].to_i
|
||||
config.restart_window = ENV['WHACAMOLE_DYNO_RESTART_TIME_IN_SEC'].to_i
|
||||
end
|
Loading…
Reference in a new issue