Skip to content

Commit 7bc38c0

Browse files
committedSep 16, 2021
[Task-1] Remove redis, sidekiq and action cable
1 parent 82cc700 commit 7bc38c0

21 files changed

+15
-91
lines changed
 

‎.rspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
--color
22
--require spec_helper
3-
--format documentation
3+
--format documentation

‎Dockerfile.worker

-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ ARG DOCKER_REGISTRY_HOST=docker.io
22
ARG DOCKER_IMAGE=nimblehq/rails_view_component_blog
33
ARG BRANCH_TAG=latest
44
FROM ${DOCKER_REGISTRY_HOST}/${DOCKER_IMAGE}:${BRANCH_TAG}
5-
6-
CMD ./bin/worker.sh

‎Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ gem 'pagy' # A pagination gem that is very light and fast
1010
gem 'discard' # Soft deletes for ActiveRecord
1111
gem 'ffaker' # A library for generating fake data such as names, addresses, and phone numbers.
1212
gem 'fabrication' # Fabrication generates objects in Ruby. Fabricators are schematics for your objects, and can be created as needed anywhere in your app or specs.
13-
gem 'sidekiq' # background processing for Ruby
1413
gem 'bootsnap', require: false # Reduces boot times through caching; required in config/boot.rb
1514
gem 'i18n-js', '3.5.1' # A library to provide the I18n translations on the Javascript
1615

‎Gemfile.lock

-7
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ GEM
9898
coderay (1.1.3)
9999
colored2 (3.1.2)
100100
concurrent-ruby (1.1.9)
101-
connection_pool (2.2.5)
102101
cork (0.3.0)
103102
colored2 (~> 3.1)
104103
crack (0.4.5)
@@ -310,7 +309,6 @@ GEM
310309
rb-inotify (0.10.1)
311310
ffi (~> 1.0)
312311
rchardet (1.8.0)
313-
redis (4.4.0)
314312
reek (6.0.6)
315313
kwalify (~> 0.7.0)
316314
parser (~> 3.0.0)
@@ -399,10 +397,6 @@ GEM
399397
sexp_processor (4.15.3)
400398
shoulda-matchers (5.0.0)
401399
activesupport (>= 5.2.0)
402-
sidekiq (6.2.1)
403-
connection_pool (>= 2.2.2)
404-
rack (~> 2.0)
405-
redis (>= 4.2.0)
406400
simplecov (0.21.2)
407401
docile (~> 1.1)
408402
simplecov-html (~> 0.11)
@@ -514,7 +508,6 @@ DEPENDENCIES
514508
sassc-rails
515509
scss_lint
516510
shoulda-matchers
517-
sidekiq
518511
simplecov
519512
simplecov-json
520513
simplecov-lcov

‎Procfile

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
web: bin/rails server -p $PORT -e $RAILS_ENV
2-
worker: bundle exec sidekiq -C config/sidekiq.yml

‎Procfile.dev

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
web: rails s -p 3000 -b '0.0.0.0'
2-
worker: bundle exec sidekiq -C config/sidekiq.yml
3-
webpack: yarn && bin/webpack-dev-server
2+
webpack: yarn && bin/webpack-dev-server

‎app/channels/application_cable/channel.rb

-6
This file was deleted.

‎app/channels/application_cable/connection.rb

-6
This file was deleted.

‎app/javascript/channels/consumer.js

-6
This file was deleted.

‎app/javascript/channels/index.js

-5
This file was deleted.

‎app/javascript/packs/application.js

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import Rails from '@rails/ujs';
77
import * as ActiveStorage from '@rails/activestorage';
8-
import 'channels';
98

109
import 'core-js/stable';
1110
import 'regenerator-runtime/runtime';

‎bin/worker.sh

-3
This file was deleted.

‎config/application.rb

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
require_relative "boot"
22

3-
require "rails/all"
3+
require "rails"
4+
# Pick the frameworks you want:
5+
require "active_model/railtie"
6+
require "active_job/railtie"
7+
require "active_record/railtie"
8+
require "active_storage/engine"
9+
require "action_controller/railtie"
10+
require "action_mailer/railtie"
11+
require "action_mailbox/engine"
12+
require "action_text/engine"
13+
require "action_view/railtie"
14+
require "sprockets/railtie"
15+
require "rails/test_unit/railtie"
416

517
# Require the gems listed in Gemfile, including any gems
618
# you've limited to :test, :development, or :production.
@@ -33,7 +45,6 @@ class Application < Rails::Application
3345
# Be sure to have the adapter's gem in your Gemfile
3446
# and follow the adapter's specific installation
3547
# and deployment instructions.
36-
config.active_job.queue_adapter = :sidekiq
3748

3849
# Prefix the queue name of all jobs with Rails ENV
3950
config.active_job.queue_name_prefix = Rails.env

‎config/cable.yml

-10
This file was deleted.

‎config/sidekiq.yml

-5
This file was deleted.

‎docker-compose.dev.yml

-6
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,3 @@ services:
88
- POSTGRES_DB=rails_view_component_blog_development
99
ports:
1010
- "5432:5432"
11-
12-
redis:
13-
image: redis:5.0.7
14-
container_name: rails_view_component_blog_redis
15-
ports:
16-
- "6379:6379"

‎docker-compose.test.yml

-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ services:
99
ports:
1010
- "5432"
1111

12-
redis:
13-
image: redis:5.0.7
14-
container_name: rails_view_component_blog_redis
15-
ports:
16-
- "6379"
17-
1812
test:
1913
build:
2014
context: .

‎docker-compose.yml

-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ services:
99
ports:
1010
- "5432:5432"
1111

12-
redis:
13-
image: redis:5.0.7
14-
container_name: rails_view_component_blog_redis
15-
ports:
16-
- "6379:6379"
17-
1812
web:
1913
build:
2014
context: .

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
},
88
"dependencies": {
99
"@babel/preset-typescript": "7.15.0",
10-
"@rails/actioncable": "^6.0.0",
1110
"@rails/activestorage": "^6.0.0",
1211
"@rails/ujs": "^6.0.0",
1312
"@rails/webpacker": "5.2.2",

‎spec/support/sidekiq.rb

-9
This file was deleted.

‎yarn.lock

-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.