railman-deployment 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74d033d4ce81b4d5dc55e8b06f733132eb49e2fe
|
4
|
+
data.tar.gz: 03d2b3eb9eeae5b140248843a427ca6e20bea9fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54afbb054778d1c2283e48ac9b3a2d029166716c6641c26a578a5125b6795099e1b828e3649be9b7538c83a9fd9a25d5bf3349f9fca4e80e149f56c2a31b8f96
|
7
|
+
data.tar.gz: 53e895b9320903702a021b6c74691e0e1dd46316cb6d4d7803eb09a1787534058c8249f91a62eed56aa18120430852322fde6cabc4849ac714f91606daa34baa
|
@@ -18,8 +18,8 @@ task :setup do
|
|
18
18
|
if test "[ -f #{fetch(:deploy_to)}/.env ]"
|
19
19
|
invoke :create_database_from_sql_file
|
20
20
|
execute :rake, 'assets:precompile'
|
21
|
-
execute :
|
22
|
-
execute :
|
21
|
+
execute :leye, :load, 'Eyefile'
|
22
|
+
execute :leye, :start, fetch(:application)
|
23
23
|
execute :service, 'nginx restart'
|
24
24
|
else
|
25
25
|
execute :cp, '.env.example.production', '.env'
|
@@ -38,8 +38,8 @@ task :remove do
|
|
38
38
|
on roles(:all) do
|
39
39
|
with fetch(:environment) do
|
40
40
|
within fetch(:deploy_to) do
|
41
|
-
execute :
|
42
|
-
execute :
|
41
|
+
execute :leye, :load, 'Eyefile'
|
42
|
+
execute :leye, :stop, fetch(:application)
|
43
43
|
execute :rake, 'db:drop'
|
44
44
|
execute :su_rm, "-rf #{fetch(:deploy_to)}"
|
45
45
|
end if test "[ -d #{fetch(:deploy_to)} ]"
|
@@ -60,8 +60,8 @@ task :deploy do
|
|
60
60
|
execute :bundle, :install
|
61
61
|
execute :rake, 'db:migrate'
|
62
62
|
execute :rake, 'assets:precompile'
|
63
|
-
execute :
|
64
|
-
execute :
|
63
|
+
execute :leye, :load, 'Eyefile'
|
64
|
+
execute :leye, :restart, fetch(:application)
|
65
65
|
execute :service, 'nginx restart'
|
66
66
|
end
|
67
67
|
end
|
@@ -87,14 +87,14 @@ task :reset_server do
|
|
87
87
|
on roles(:all) do
|
88
88
|
with fetch(:environment) do
|
89
89
|
within fetch(:deploy_to) do
|
90
|
-
execute :
|
91
|
-
execute :
|
90
|
+
execute :leye, :load, 'Eyefile'
|
91
|
+
execute :leye, :stop, fetch(:application)
|
92
92
|
sleep 6 # seconds
|
93
93
|
invoke :fetch_and_reset_git_repository
|
94
94
|
execute :rake, 'db:drop'
|
95
95
|
invoke :create_database_from_sql_file
|
96
96
|
invoke :sync_local_dirs_to_server
|
97
|
-
execute :
|
97
|
+
execute :leye, :start, fetch(:application)
|
98
98
|
execute :service, 'nginx restart'
|
99
99
|
end
|
100
100
|
end
|
@@ -7,7 +7,7 @@ task :set_railman_env do
|
|
7
7
|
%w(ln service start restart stop status).each do |cmd|
|
8
8
|
SSHKit.config.command_map[cmd.to_sym] = "sudo #{cmd}"
|
9
9
|
end
|
10
|
-
SSHKit.config.command_map[:
|
10
|
+
SSHKit.config.command_map[:leye] = "#{fetch(:rbenv_home)}/shims/leye"
|
11
11
|
SSHKit.config.command_map[:su_rm] = 'sudo rm'
|
12
12
|
end
|
13
13
|
|
data/railman-deployment.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railman-deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 3.6.1
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: eye
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.9.2
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.9.2
|
125
139
|
description: railman-deployment gem adds capistrano tasks for automated deployment
|
126
140
|
of rails applications generated by railman
|
127
141
|
email:
|