Skip to content

Commit

Permalink
Add guard puma and disable hanami reloader for production
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovanton committed Dec 4, 2017
1 parent f7f73d4 commit fe9c553
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .hanami.server.guardfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
guard "rack", port: ENV["HANAMI_PORT"] || 2300 do
guard "puma", port: ENV["HANAMI_PORT"] || 2300 do
watch(%r{config/*})
watch(%r{lib/*})
watch(%r{apps/*})
Expand Down
9 changes: 5 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ gem 'hiredis'
gem 'mock_redis'
gem 'connection_pool'

group :plugins do
gem 'hanami-reloader'
end

# group :plugins do
# gem 'hanami-reloader'
# end
#
group :development do
gem 'guard-puma'
gem 'better_errors'
gem 'binding_of_caller'
end
Expand Down
16 changes: 6 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ GEM
pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-rack (2.2.0)
ffi
guard (~> 2.3)
spoon
guard-compat (1.2.1)
guard-puma (0.3.6)
guard (~> 2.14)
guard-compat (~> 1.2)
puma (~> 3.6)
hanami (1.1.0)
bundler
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -141,9 +142,6 @@ GEM
rom (~> 3.3, >= 3.3.3)
rom-repository (~> 1.4)
rom-sql (~> 1.3, >= 1.3.5)
hanami-reloader (0.2.0)
guard-rack (~> 2.2)
hanami (~> 1.1)
hanami-router (1.1.0)
hanami-utils (~> 1.1)
http_router (= 0.11.2)
Expand Down Expand Up @@ -268,8 +266,6 @@ GEM
slim (3.0.8)
temple (>= 0.7.6, < 0.9)
tilt (>= 1.3.3, < 2.1)
spoon (0.0.6)
ffi
temple (0.8.0)
thor (0.20.0)
thread_safe (0.3.6)
Expand Down Expand Up @@ -300,11 +296,11 @@ DEPENDENCIES
dry-struct
dry-system
graphql
guard-puma
hanami (~> 1.1)
hanami-bootstrap (= 0.4)
hanami-model (~> 1.1)
hanami-pagination!
hanami-reloader
hanami-serializer!
hiredis
mock_redis
Expand Down

0 comments on commit fe9c553

Please sign in to comment.