capistrano-deploy-management 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,8 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'capistrano-deploy-management'
|
4
|
-
s.
|
4
|
+
s.description = 'Collection of Capistrano recipes for deploying Rails apps into high-performance environments'
|
5
|
+
s.version = '0.1.13'
|
5
6
|
s.platform = Gem::Platform::RUBY
|
6
7
|
s.authors = ['Dominik Rodler']
|
7
8
|
s.email = ['dominik.rodler@gmail.com']
|
data/changelog.md
CHANGED
@@ -3,9 +3,10 @@ module CapistranoDeployManagement
|
|
3
3
|
def self.load_into(configuration)
|
4
4
|
configuration.load do
|
5
5
|
|
6
|
-
set(:puma_config)
|
7
|
-
set(:
|
8
|
-
set(:
|
6
|
+
# set(:puma_config) { "#{current_path}/config/puma.rb" }
|
7
|
+
set(:puma_port) { "cat #{current_path}/config/puma.rb" }
|
8
|
+
set(:puma_pidfile) { "#{deploy_to}/shared/pids/puma.pid" }
|
9
|
+
set(:puma_pid) { "cat #{deploy_to}/shared/pids/puma.pid" }
|
9
10
|
|
10
11
|
namespace :puma do
|
11
12
|
desc 'Restart puma.'
|
@@ -17,7 +18,8 @@ module CapistranoDeployManagement
|
|
17
18
|
desc 'Start puma.'
|
18
19
|
task :start, :roles => :app, :except => {:no_release => true} do
|
19
20
|
# run "cd #{current_path} && puma -C #{puma_config}"
|
20
|
-
|
21
|
+
# TODO: fix hardcoded port setting by using a config file
|
22
|
+
run "cd #{current_path} && bundle exec rails s puma --port #{puma_port} -e #{rails_env} --pidfile #{puma_pidfile}"
|
21
23
|
end
|
22
24
|
|
23
25
|
desc 'Stop puma.'
|
@@ -17,7 +17,7 @@ module CapistranoDeployManagement
|
|
17
17
|
|
18
18
|
desc 'Start unicorn.'
|
19
19
|
task :start, :roles => :app do
|
20
|
-
run "cd #{current_path} && unicorn -c #{unicorn_config} -E
|
20
|
+
run "cd #{current_path} && unicorn -c #{unicorn_config} -E #{rails_env} -D"
|
21
21
|
end
|
22
22
|
|
23
23
|
desc 'Stop unicorn.'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-deploy-management
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,7 +27,8 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.9'
|
30
|
-
description:
|
30
|
+
description: Collection of Capistrano recipes for deploying Rails apps into high-performance
|
31
|
+
environments
|
31
32
|
email:
|
32
33
|
- dominik.rodler@gmail.com
|
33
34
|
executables: []
|