Skip to content

Commit 79543e2

Browse files
author
Thomas McNiven
committedApr 28, 2016
Docker: fixes and updates for latest version
1 parent 0ebd3fd commit 79543e2

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
lines changed
 

‎Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ COPY . /opt/hummingbird/server
1515

1616
ENV DATABASE_URL=postgresql://postgres:mysecretpassword@postgres/
1717
ENV REDIS_URL=redis://redis/1
18+
ENV ELASTICSEARCH_HOST=elasticsearch
1819

1920
ENTRYPOINT ["bundle", "exec"]
2021
CMD ["puma", "--port=80"]

‎Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ GEM
367367
simplecov-html (~> 0.10.0)
368368
simplecov-html (0.10.0)
369369
slop (3.6.0)
370-
spring (1.4.0)
370+
spring (1.7.1)
371371
sprockets (3.3.4)
372372
rack (~> 1.0)
373373
sprockets-rails (2.3.3)
@@ -454,4 +454,4 @@ DEPENDENCIES
454454
typhoeus
455455

456456
BUNDLED WITH
457-
1.10.6
457+
1.11.2

‎bin/rails

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env ruby
22
begin
3-
load File.expand_path("../spring", __FILE__)
4-
rescue LoadError
3+
load File.expand_path('../spring', __FILE__)
4+
rescue LoadError => e
5+
raise unless e.message.include?('spring')
56
end
67
APP_PATH = File.expand_path('../../config/application', __FILE__)
78
require_relative '../config/boot'

‎bin/rake

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env ruby
22
begin
3-
load File.expand_path("../spring", __FILE__)
4-
rescue LoadError
3+
load File.expand_path('../spring', __FILE__)
4+
rescue LoadError => e
5+
raise unless e.message.include?('spring')
56
end
67
require_relative '../config/boot'
78
require 'rake'

‎bin/spring

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# It gets overwritten when you run the `spring binstub` command.
55

66
unless defined?(Spring)
7-
require "rubygems"
8-
require "bundler"
7+
require 'rubygems'
8+
require 'bundler'
99

1010
if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
11-
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
12-
gem "spring", match[1]
13-
require "spring/binstub"
11+
Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
12+
gem 'spring', match[1]
13+
require 'spring/binstub'
1414
end
1515
end

‎config/chewy.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
test:
2-
prefix: 'test'
1+
default: &default
2+
host: <%= ENV['ELASTICSEARCH_HOST'] %>
33

44
development:
5+
<<: *default
56
prefix: 'development'
67

8+
test:
9+
<<: *default
10+
prefix: 'test'
11+
712
production:
13+
<<: *default
814
prefix: 'production'

0 commit comments

Comments
 (0)
Please sign in to comment.