File tree 6 files changed +22
-13
lines changed
6 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ COPY . /opt/hummingbird/server
15
15
16
16
ENV DATABASE_URL=postgresql://postgres:mysecretpassword@postgres/
17
17
ENV REDIS_URL=redis://redis/1
18
+ ENV ELASTICSEARCH_HOST=elasticsearch
18
19
19
20
ENTRYPOINT ["bundle" , "exec" ]
20
21
CMD ["puma" , "--port=80" ]
Original file line number Diff line number Diff line change 367
367
simplecov-html (~> 0.10.0 )
368
368
simplecov-html (0.10.0 )
369
369
slop (3.6.0 )
370
- spring (1.4.0 )
370
+ spring (1.7.1 )
371
371
sprockets (3.3.4 )
372
372
rack (~> 1.0 )
373
373
sprockets-rails (2.3.3 )
@@ -454,4 +454,4 @@ DEPENDENCIES
454
454
typhoeus
455
455
456
456
BUNDLED WITH
457
- 1.10.6
457
+ 1.11.2
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
2
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' )
5
6
end
6
7
APP_PATH = File . expand_path ( '../../config/application' , __FILE__ )
7
8
require_relative '../config/boot'
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
2
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' )
5
6
end
6
7
require_relative '../config/boot'
7
8
require 'rake'
Original file line number Diff line number Diff line change 4
4
# It gets overwritten when you run the `spring binstub` command.
5
5
6
6
unless defined? ( Spring )
7
- require " rubygems"
8
- require " bundler"
7
+ require ' rubygems'
8
+ require ' bundler'
9
9
10
10
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'
14
14
end
15
15
end
Original file line number Diff line number Diff line change 1
- test :
2
- prefix : ' test '
1
+ default : &default
2
+ host : <%= ENV['ELASTICSEARCH_HOST'] %>
3
3
4
4
development :
5
+ << : *default
5
6
prefix : ' development'
6
7
8
+ test :
9
+ << : *default
10
+ prefix : ' test'
11
+
7
12
production :
13
+ << : *default
8
14
prefix : ' production'
You can’t perform that action at this time.
0 commit comments