smartcloud 0.0.63 → 0.0.64
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: f57d80ab93f419626510b2d56067a8c4173ce23adde538a10486763b7e6f8c93
|
|
4
|
+
data.tar.gz: d1f022edbc76643df042308dc1ac38cdbed53a6fdc14e5af2dbb8c1a60e5ee67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75bca97c9abc2b974e06c37eb817226f92ff699b50019f671f1495f53248ce15aedbf8ee11082ada423d6e30f55101b5bb1f2c7d165a7a5c99f3a8e4b17c1249
|
|
7
|
+
data.tar.gz: 5e75c944d1761c25ab2a1429bb656e109d1feaf653da885ff878c5ef1152581d078c77e961f3cdedc7c6c7e6da85f22a79b5a7f48ca09a220e48f3f5e22af80a
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
class Buildpacker
|
|
2
|
-
def initialize
|
|
2
|
+
def initialize
|
|
3
|
+
end
|
|
4
|
+
|
|
5
|
+
def pack
|
|
3
6
|
puts "---------------------------------------------------------------"
|
|
4
|
-
|
|
5
|
-
if File.exist? "bin/rails"
|
|
6
|
-
# Remove server.pid if it exists
|
|
7
|
-
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
|
8
|
-
|
|
9
|
-
puts "-----> Performing bundle install ... "
|
|
10
|
-
if system("bundle install")
|
|
11
|
-
puts "-----> Compiling Assets ... "
|
|
12
|
-
if system("bundle exec rails assets:precompile")
|
|
13
|
-
system("foreman start -f Procfile")
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
7
|
+
|
|
8
|
+
pack_rails if File.exist? "bin/rails"
|
|
17
9
|
|
|
18
10
|
puts "failed."
|
|
19
11
|
exit 1
|
|
20
12
|
end
|
|
13
|
+
|
|
14
|
+
def pack_rails
|
|
15
|
+
# Remove server.pid if it exists
|
|
16
|
+
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
|
17
|
+
|
|
18
|
+
puts "-----> Performing bundle install ... "
|
|
19
|
+
if system("bundle install")
|
|
20
|
+
puts "-----> Compiling Assets ... "
|
|
21
|
+
if system("bundle exec rails assets:precompile")
|
|
22
|
+
system("foreman start -f Procfile")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
21
26
|
end
|
|
22
27
|
|
|
23
|
-
Buildpacker.new
|
|
28
|
+
buildpacker = Buildpacker.new
|
|
29
|
+
buildpacker.pack
|
|
@@ -296,7 +296,7 @@ module Smartcloud
|
|
|
296
296
|
self.stop_app(appname)
|
|
297
297
|
|
|
298
298
|
# Starting Rails App
|
|
299
|
-
self.
|
|
299
|
+
self.start_app_rails(appname, container_path, container_path_with_now_date)
|
|
300
300
|
end
|
|
301
301
|
end
|
|
302
302
|
end
|
|
@@ -324,7 +324,7 @@ module Smartcloud
|
|
|
324
324
|
end
|
|
325
325
|
end
|
|
326
326
|
|
|
327
|
-
def self.
|
|
327
|
+
def self.start_app_rails(appname, container_path, container_path_with_now_date)
|
|
328
328
|
puts "-----> Ruby on Rails Application Detected"
|
|
329
329
|
|
|
330
330
|
# Setup rails env
|