railman-deployment 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railman-deployment/version.rb +1 -1
- data/lib/railman/tasks/deployment.rake +0 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d40d5a23e96633ebed6670a8fb64956555433d6f6abd9ce5c02f02d3baaacb9
|
4
|
+
data.tar.gz: 9af2c420994be20dbdf9a97925d0852abdc03133e98e75b2cf7b264dbe54540e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83291312ab167dd16df63da5aa1ed18c53e04ea9508075eee9060d12f086758229025a4207f1144d9802be8346d94623dbb2dced8559113d423b926436669075
|
7
|
+
data.tar.gz: 9016f1cbb08f6c6295cc98701236ab64340e37728565c52d8979ea4ed94f23e99e5866682708286f557018931a03a2196d8ce234f8445a8d4ca81933c785168c
|
@@ -6,7 +6,6 @@ task :setup do
|
|
6
6
|
invoke :fetch_and_reset_git_repository
|
7
7
|
else
|
8
8
|
execute :git, :clone, fetch(:repo_url), fetch(:deploy_to)
|
9
|
-
invoke :sync_local_dirs_to_server
|
10
9
|
end
|
11
10
|
server_conf_dir = "#{fetch(:deploy_to)}/config/server"
|
12
11
|
execute :su_cp, "#{server_conf_dir}/puma.service /lib/systemd/system/#{fetch(:application)}.service"
|
@@ -95,18 +94,6 @@ task :update do
|
|
95
94
|
invoke :sync_local_dirs_from_server
|
96
95
|
end
|
97
96
|
|
98
|
-
task :sync_local_dirs_to_server do
|
99
|
-
on roles(:all) do
|
100
|
-
fetch(:sync_dirs, []).each do |sync_dir|
|
101
|
-
if File.exists?("./#{sync_dir}")
|
102
|
-
run_locally do
|
103
|
-
execute "rsync -avz --delete -e ssh ./#{sync_dir}/ #{fetch(:user)}@#{fetch(:server)}:#{fetch(:deploy_to)}/#{sync_dir}/"
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
97
|
task :sync_local_dirs_from_server do
|
111
98
|
on roles(:all) do
|
112
99
|
fetch(:sync_dirs, []).each do |sync_dir|
|