more puma deploy
This commit is contained in:
parent
bac0d545b0
commit
839f1c1d94
@ -23,7 +23,7 @@ set :user, 'feenix' # Username in the server to SSH to.
|
|||||||
# Shared dirs and files will be symlinked into the app-folder by the 'deploy:link_shared_paths' step.
|
# Shared dirs and files will be symlinked into the app-folder by the 'deploy:link_shared_paths' step.
|
||||||
# Some plugins already add folders to shared_dirs like `mina/rails` add `public/assets`, `vendor/bundle` and many more
|
# Some plugins already add folders to shared_dirs like `mina/rails` add `public/assets`, `vendor/bundle` and many more
|
||||||
# run `mina -d` to see all folders and files already included in `shared_dirs` and `shared_files`
|
# run `mina -d` to see all folders and files already included in `shared_dirs` and `shared_files`
|
||||||
set :shared_dirs, fetch(:shared_dirs, []).push('tmp/puma')
|
set :shared_dirs, fetch(:shared_dirs, []).push('tmp/pids' , 'tmp/sockets')
|
||||||
set :shared_files, fetch(:shared_files, []).push('config/master.key')
|
set :shared_files, fetch(:shared_files, []).push('config/master.key')
|
||||||
|
|
||||||
# This task is the environment that is loaded for all remote run commands, such as
|
# This task is the environment that is loaded for all remote run commands, such as
|
||||||
|
@ -22,9 +22,9 @@ port ENV.fetch("PORT") { 3000 }
|
|||||||
environment ENV.fetch("RAILS_ENV") { "development" }
|
environment ENV.fetch("RAILS_ENV") { "development" }
|
||||||
|
|
||||||
# Specifies the `pidfile` that Puma will use.
|
# Specifies the `pidfile` that Puma will use.
|
||||||
pidfile ENV.fetch("PIDFILE") { "tmp/puma/puma.pid" }
|
pidfile ENV.fetch("PIDFILE") { "tmp/pids/puma.pid" }
|
||||||
|
|
||||||
bind 'unix://tmp/puma/puma.sock'
|
bind 'unix://tmp/sockets/puma.sock'
|
||||||
|
|
||||||
# Specifies the number of `workers` to boot in clustered mode.
|
# Specifies the number of `workers` to boot in clustered mode.
|
||||||
# Workers are forked web server processes. If using threads and workers together
|
# Workers are forked web server processes. If using threads and workers together
|
||||||
|
Loading…
Reference in New Issue
Block a user