smartcloud 0.0.209 → 0.0.210
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartcloud/grids/runner.rb +2 -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: 3bf623554630c75acfa9f52774cd43895f4c0f7011d5e85e09cb2354ce998d5f
|
4
|
+
data.tar.gz: 6927b37194d934bdb535945ef0b1f2c03114a6f22a0c4f521c16874cf771efd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bbdd5c3489d85920d70a6ec17382541b7e63a7fbda1cbf3d363035204bb47e540780d8caa5abaf68d38b0f54c5832aa853c36b9347a57bcc15475b9afad9c2a
|
7
|
+
data.tar.gz: f2c71b2eb92d39ef20125c45a53050fef60f3c74160b32a79d60379801f3fb14f823f411018b7a795f0b6f3fcdd26ed6e90eac892cf3b05830c2072a39a536cf
|
@@ -323,7 +323,8 @@ module Smartcloud
|
|
323
323
|
|
324
324
|
# Creating & Starting container
|
325
325
|
container_id = `docker ps -a -q --filter='name=^#{appname}_1$' --filter='status=running'`.chomp
|
326
|
-
new_container
|
326
|
+
new_container = container_id.empty? ? "#{appname}_1" : "#{appname}_2"
|
327
|
+
old_container = container_id.empty? ? "#{appname}_2" : "#{appname}_1"
|
327
328
|
|
328
329
|
self.stop_app("#{new_container}")
|
329
330
|
if system("docker create \
|