aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock5
-rw-r--r--config/puma.rb2
3 files changed, 8 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 0f2d720..bccedcf 100644
--- a/Gemfile
+++ b/Gemfile
@@ -9,6 +9,7 @@ gem 'rails', '~> 6.0.3', '>= 6.0.3.2'
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 4.1'
+gem 'puma-plugin-systemd'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
diff --git a/Gemfile.lock b/Gemfile.lock
index 449493a..224b6dc 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -82,6 +82,7 @@ GEM
concurrent-ruby (~> 1.0)
jbuilder (2.10.1)
activesupport (>= 5.0.0)
+ json (2.3.1)
listen (3.2.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
@@ -110,6 +111,9 @@ GEM
pry (>= 0.10.4)
puma (4.3.6)
nio4r (~> 2.0)
+ puma-plugin-systemd (0.1.5)
+ json
+ puma (>= 3.6, < 5)
rack (2.2.3)
rack-proxy (0.6.5)
rack
@@ -202,6 +206,7 @@ DEPENDENCIES
pry
pry-rails
puma (~> 4.1)
+ puma-plugin-systemd
rails (~> 6.0.3, >= 6.0.3.2)
sass-rails (>= 6)
spring
diff --git a/config/puma.rb b/config/puma.rb
index b31c6d3..41e7344 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -53,3 +53,5 @@ preload_app!
# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart
+# Better integration with systemd
+plugin :systemd