harbr 0.0.103 → 0.0.105
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/harbr +1 -4
- data/lib/harbr/next/job.rb +2 -1
- data/lib/harbr/version.rb +1 -1
- 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: ab5ab67e12fe0aaf946a2725b1029ac088f8b14da8876d0b2579f1cc4789eac9
|
4
|
+
data.tar.gz: e10e5f10388d011814d68750858b839351a00c01c5d9637e049bb6561a92b384
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a0dcfe90c7694d91b92aa4d2cf21d24d2ad84e91759e1a6adaf978f0cebcb6160b73c15dee4111bbacdef41bc02c7a045f06a597973722bab6b6885143d3e3
|
7
|
+
data.tar.gz: 28298dbb513b8c9d9a4520c085d55fffcfe0f4de68cdeb864e39e645138ee23400e8283f074460256d95e6c89feab7ef6628f7fdb34cfabb2d78f5edbc5e7f76
|
data/exe/harbr
CHANGED
@@ -172,11 +172,8 @@ class HarbrCLI < Thor
|
|
172
172
|
desc "deploy", "deploy a container to production"
|
173
173
|
def deploy(name)
|
174
174
|
Dir.chdir("/var/harbr/containers/#{name}/") do
|
175
|
-
`cp -r current
|
176
|
-
`cp -r next next.bak`
|
175
|
+
`cp -r current roolback`
|
177
176
|
`mv next current`
|
178
|
-
`mv current.bak rollback`
|
179
|
-
`mv next.bak next`
|
180
177
|
puts `sv restart #{name}`
|
181
178
|
end
|
182
179
|
|
data/lib/harbr/next/job.rb
CHANGED
@@ -166,7 +166,8 @@ module Harbr
|
|
166
166
|
`bundle config set --local path 'vendor/bundle'`
|
167
167
|
|
168
168
|
manifest = load_manifest(name,version)
|
169
|
-
|
169
|
+
|
170
|
+
current_path = "/var/harbr/containers/#{name}/current"
|
170
171
|
|
171
172
|
port = `port assign next.#{manifest.port}`.strip
|
172
173
|
|
data/lib/harbr/version.rb
CHANGED