back to puma

This commit is contained in:
Torsten 2022-03-30 21:09:53 +03:00
parent 81344109c4
commit c373104393
3 changed files with 11 additions and 7 deletions

View File

@ -16,7 +16,7 @@ gem "net-ssh"
gem "haml-rails" gem "haml-rails"
gem 'high_voltage', '~> 3.1' gem 'high_voltage', '~> 3.1'
gem "passenger", require: "phusion_passenger/rack_handler" gem "puma"
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2" # gem "image_processing", "~> 1.2"
@ -30,6 +30,7 @@ group :development do
gem "web-console" gem "web-console"
gem "rack-mini-profiler" gem "rack-mini-profiler"
gem "mina" gem "mina"
gem "mina-puma"
end end
group :test do group :test do

View File

@ -128,6 +128,9 @@ GEM
mina (1.2.4) mina (1.2.4)
open4 (~> 1.3.4) open4 (~> 1.3.4)
rake rake
mina-puma (1.1.0)
mina (~> 1.2.0)
puma (>= 2.13)
mini_mime (1.1.2) mini_mime (1.1.2)
minitest (5.15.0) minitest (5.15.0)
msgpack (1.4.5) msgpack (1.4.5)
@ -151,10 +154,9 @@ GEM
nokogiri (1.13.3-x86_64-linux) nokogiri (1.13.3-x86_64-linux)
racc (~> 1.4) racc (~> 1.4)
open4 (1.3.4) open4 (1.3.4)
passenger (6.0.13)
rack
rake (>= 0.8.1)
public_suffix (4.0.6) public_suffix (4.0.6)
puma (5.6.4)
nio4r (~> 2.0)
racc (1.6.0) racc (1.6.0)
rack (2.2.3) rack (2.2.3)
rack-mini-profiler (3.0.0) rack-mini-profiler (3.0.0)
@ -252,8 +254,9 @@ DEPENDENCIES
high_voltage (~> 3.1) high_voltage (~> 3.1)
importmap-rails importmap-rails
mina mina
mina-puma
net-ssh net-ssh
passenger puma
rack-mini-profiler rack-mini-profiler
rails (~> 7.0) rails (~> 7.0)
sassc-rails sassc-rails

View File

@ -1,6 +1,7 @@
require 'mina/rails' require 'mina/rails'
require 'mina/git' require 'mina/git'
require 'mina/rbenv' # for rbenv support. (https://rbenv.org) require 'mina/rbenv' # for rbenv support. (https://rbenv.org)
require 'mina/puma'
# Basic settings: # Basic settings:
# domain - The hostname to SSH to. # domain - The hostname to SSH to.
@ -58,8 +59,7 @@ task :deploy do
on :launch do on :launch do
in_path(fetch(:current_path)) do in_path(fetch(:current_path)) do
command %{mkdir -p tmp/} invoke :'puma:phased_restart'
command %{touch tmp/restart.txt}
end end
end end
end end