smartcloud 0.0.66 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b68c2a7f54171112f347de8f7e8877e04d7f6710b30b8e18f46924d34863946
|
4
|
+
data.tar.gz: bd110764a18ab8fba195017f12a325ec9da2f3f22526f326f53249984e443513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5b40d17b0f6d67b626a047e7eee3b3c03eb8e3b42d92f22b125ff88fce2de7eac0dfb315320726363ff775cb6a88f11577e651fdfc056e60e2df668ac19811d
|
7
|
+
data.tar.gz: f2137f0c29988677389d01307b8b7d785e93a35ed7884eb27694a79fd9b169928c604340181355356f0a15151a68665b6768003ff710f37cabd0b8b57efe8c8b
|
@@ -7,7 +7,7 @@ class Buildpacker
|
|
7
7
|
|
8
8
|
pack_rails if File.exist? "bin/rails"
|
9
9
|
|
10
|
-
puts "
|
10
|
+
puts "-----> Could not continue ... Launch Failed."
|
11
11
|
exit 1
|
12
12
|
end
|
13
13
|
|
@@ -19,7 +19,10 @@ class Buildpacker
|
|
19
19
|
if system("bundle install")
|
20
20
|
puts "-----> Compiling Assets ... "
|
21
21
|
if system("bundle exec rails assets:precompile")
|
22
|
-
|
22
|
+
puts "-----> Running Web Server ... "
|
23
|
+
if system("foreman start -f Procfile")
|
24
|
+
puts "-----> Launched Application ... Success."
|
25
|
+
end
|
23
26
|
end
|
24
27
|
end
|
25
28
|
end
|
@@ -351,7 +351,6 @@ module Smartcloud
|
|
351
351
|
end
|
352
352
|
|
353
353
|
# Creating & Starting container
|
354
|
-
print "-----> Creating container #{appname} ... "
|
355
354
|
if system("docker create \
|
356
355
|
--name='#{appname}' \
|
357
356
|
--env-file='#{container_path}/env' \
|
@@ -361,14 +360,11 @@ module Smartcloud
|
|
361
360
|
--restart='always' \
|
362
361
|
--network='nginx-network' \
|
363
362
|
smartcloud/buildpacks/rails", out: File::NULL)
|
364
|
-
puts "done"
|
365
363
|
|
366
364
|
system("docker network connect solr-network #{appname}")
|
367
365
|
system("docker network connect mysql-network #{appname}")
|
368
366
|
|
369
|
-
print "-----> Starting container #{appname} ... "
|
370
367
|
system("docker start --attach #{appname}")
|
371
|
-
puts "done"
|
372
368
|
end
|
373
369
|
end
|
374
370
|
end
|