Skip to content

Commit 632dd10

Browse files
vkghubTreyE
authored andcommitted
Add event_source with auto-scaling.
1 parent 2d5b90e commit 632dd10

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ruby '2.7.6'
99
gem 'mitc_service', path: 'components/mitc_service'
1010

1111
gem 'aca_entities', git: 'https://github.com/ideacrew/aca_entities.git', branch: 'trunk'
12-
gem 'event_source', git: 'https://github.com/ideacrew/event_source.git', branch: 'trunk'
12+
gem 'event_source', git: 'https://github.com/ideacrew/event_source.git', branch: 'wait_for_rails_start'
1313

1414
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
1515
gem 'rails', '~> 6.1.3'

Gemfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ GIT
1818

1919
GIT
2020
remote: https://github.com/ideacrew/event_source.git
21-
revision: 29393ebb04df8f57ccb536da4635087c8c8bde0b
22-
branch: trunk
21+
revision: 1a876c5badb31ed05b7160e0d2a15343b96e9ba0
22+
branch: wait_for_rails_start
2323
specs:
24-
event_source (0.5.5)
24+
event_source (0.5.8)
2525
bunny (>= 2.14)
2626
deep_merge (~> 1.2.0)
2727
dry-events (~> 0.3)

components/mitc_service/Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gemspec
1010
# gem 'byebug', group: [:development, :test]
1111

1212
gem 'aca_entities', git: 'https://github.com/ideacrew/aca_entities.git', branch: 'trunk'
13-
gem 'event_source', git: 'https://github.com/ideacrew/event_source.git', branch: 'trunk'
13+
gem 'event_source', git: 'https://github.com/ideacrew/event_source.git', branch: 'wait_for_rails_start'
1414

1515
group :development, :test do
1616
gem "rspec-rails"

components/mitc_service/Gemfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ GIT
1717

1818
GIT
1919
remote: https://github.com/ideacrew/event_source.git
20-
revision: 29393ebb04df8f57ccb536da4635087c8c8bde0b
21-
branch: trunk
20+
revision: 1a876c5badb31ed05b7160e0d2a15343b96e9ba0
21+
branch: wait_for_rails_start
2222
specs:
23-
event_source (0.5.5)
23+
event_source (0.5.8)
2424
bunny (>= 2.14)
2525
deep_merge (~> 1.2.0)
2626
dry-events (~> 0.3)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
EventSource.configure do |config|
4+
config.protocols = %w[amqp http]
5+
end

config/initializers/event_source.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@
6565
end
6666
end
6767

68-
EventSource.initialize!
68+
# EventSource.initialize!

0 commit comments

Comments
 (0)