mina-puma-nginx 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mina/nginx/version.rb +1 -1
- data/lib/mina/nginx.rb +4 -4
- metadata +6 -6
- /data/lib/mina/templates/{nginx.conf.erb → nginx.conf.template} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 887e9ab4d1fde96f773de9a8861bd3a78acb6fee5e74697b892ba8167a02d0a0
|
4
|
+
data.tar.gz: 2510cce1718d8743ffd1ec7bdeebcb0b04406f9b7beaa89a43a72549716303dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de4fdfe5982d9d21354e1c00d7ffaeed07f8a33791497c44463191550d4e27958dee4e6178b7fda8dae786087ece7cd845da1604b820b1519b10931b41d2cab6
|
7
|
+
data.tar.gz: b3d180d46344b92ca22a9e12993dcbd0b948e096bc81a7d65b316b0917d6e486388ba76b7da9b9918dc0dbf971a211b36420528497038bc999fbb0eaf55044fa
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ Install the base template to your repo's `lib/mina/templates` directory:
|
|
31
31
|
|
32
32
|
Consider variables used by the nginx config, particularly:
|
33
33
|
|
34
|
-
* `
|
34
|
+
* `application_name` - application name; defaults to 'application'
|
35
35
|
* `nginx_socket_path` - path to socket file used in nginx upstream directive
|
36
36
|
* `server_name` - application's nginx server_name (e.g. example.com); defaults to value for `domain`
|
37
37
|
* `domain` - fqdn you are deploying to
|
data/lib/mina/nginx/version.rb
CHANGED
data/lib/mina/nginx.rb
CHANGED
@@ -5,7 +5,7 @@ namespace :nginx do
|
|
5
5
|
set :nginx_path, '/etc/nginx'
|
6
6
|
set :nginx_socket_path, -> { "#{fetch(:shared_path)}/tmp/sockets/puma.sock" }
|
7
7
|
set :nginx_socket_flags, "fail_timeout=0"
|
8
|
-
set :nginx_config_unit, -> { "#{fetch(:
|
8
|
+
set :nginx_config_unit, -> { "#{fetch(:application_name)}_#{fetch(:stage, fetch(:rails_env))}" }
|
9
9
|
set :nginx_config_name, -> { "#{fetch(:nginx_config_unit)}.conf" }
|
10
10
|
|
11
11
|
set :nginx_sites_available_path, -> { "#{fetch(:nginx_path)}/sites-available" }
|
@@ -49,7 +49,7 @@ namespace :nginx do
|
|
49
49
|
nginx_enabled_config = fetch(:nginx_config_e)
|
50
50
|
|
51
51
|
comment %(Installing nginx config file to #{nginx_config})
|
52
|
-
command %(
|
52
|
+
command %(echo -ne '#{escaped_nginx_template}' | sudo tee #{nginx_config})
|
53
53
|
|
54
54
|
comment %(Symlinking nginx config file to #{nginx_enabled_config})
|
55
55
|
command %(sudo ln -nfs #{nginx_config} #{nginx_enabled_config})
|
@@ -85,7 +85,7 @@ namespace :nginx do
|
|
85
85
|
|
86
86
|
def path_for_template installed: true
|
87
87
|
installed ?
|
88
|
-
File.expand_path('./config/deploy/templates/nginx.conf.
|
89
|
-
File.expand_path('../templates/nginx.conf.
|
88
|
+
File.expand_path('./config/deploy/templates/nginx.conf.template') :
|
89
|
+
File.expand_path('../templates/nginx.conf.template', __FILE__)
|
90
90
|
end
|
91
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-puma-nginx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Elchinov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mina
|
@@ -66,13 +66,13 @@ files:
|
|
66
66
|
- Rakefile
|
67
67
|
- lib/mina/nginx.rb
|
68
68
|
- lib/mina/nginx/version.rb
|
69
|
-
- lib/mina/templates/nginx.conf.
|
69
|
+
- lib/mina/templates/nginx.conf.template
|
70
70
|
- mina-puma-nginx.gemspec
|
71
71
|
homepage: https://github.com/railsblueprint/mina-puma-nginx.git
|
72
72
|
licenses:
|
73
73
|
- MIT
|
74
74
|
metadata: {}
|
75
|
-
post_install_message:
|
75
|
+
post_install_message:
|
76
76
|
rdoc_options: []
|
77
77
|
require_paths:
|
78
78
|
- lib
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubygems_version: 3.0.3
|
91
|
-
signing_key:
|
91
|
+
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Mina tasks for handle with Nginx.
|
94
94
|
test_files: []
|
File without changes
|