smartcloud 0.0.80 → 0.0.81
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: 646078f60f1b097477a66ed4c5c4fdbbf63f8d1537267bc16a574cbfaaa93592
|
|
4
|
+
data.tar.gz: 47d48167d8f10499b4141fc18bbe39092c143046cee9566f6729721b99e7bea5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5eab2db60ccff6fd96267e109c183e1aafd9978649c802dbc3e79e48bc7f2a360e3f304afbb3b2b4e54acdd61ee52fa22fd7b6df2a8621341b03852b1255c1e3
|
|
7
|
+
data.tar.gz: 600a96782744b59d605be2df81c88c9885dadd135f5a4ec92b9038c85fa48b1fce3e61fb151590d970e0b6d59eacbcfa4de178bca39dbf052997c0fbe1528093
|
|
@@ -3,10 +3,7 @@ class Buildpacker
|
|
|
3
3
|
end
|
|
4
4
|
|
|
5
5
|
def pack
|
|
6
|
-
puts "---------------------------------------------------------------------------"
|
|
7
|
-
|
|
8
6
|
pack_rails if File.exist? "bin/rails"
|
|
9
|
-
|
|
10
7
|
puts "-----> Could not continue ... Launch Failed."
|
|
11
8
|
end
|
|
12
9
|
|
|
@@ -15,9 +12,11 @@ class Buildpacker
|
|
|
15
12
|
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
|
16
13
|
|
|
17
14
|
puts "-----> Performing bundle install ... "
|
|
18
|
-
if system("bundle install")
|
|
15
|
+
if system("bundle install --deployment --clean --without development test")
|
|
19
16
|
puts "-----> Installing Javascript Dependencies & Pre-compiling Assets ... "
|
|
20
|
-
if system("bundle exec rails assets:precompile")
|
|
17
|
+
if system("bundle exec rails assets:precompile", out: File::NULL)
|
|
18
|
+
puts "done"
|
|
19
|
+
|
|
21
20
|
puts "-----> Running Web Server ... "
|
|
22
21
|
if system("foreman start -f Procfile")
|
|
23
22
|
puts "-----> Launched Application ... Success."
|
|
@@ -218,10 +218,13 @@ module Smartcloud
|
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
def self.prereceive_app(appname, username, oldrev, newrev, refname)
|
|
221
|
+
STDOUT.sync = true
|
|
222
|
+
logger = Logger.new(STDOUT)
|
|
223
|
+
|
|
221
224
|
container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/containers/#{appname}"
|
|
222
225
|
|
|
223
226
|
## Verify the user and ensure the user is correct and has access to this repository
|
|
224
|
-
|
|
227
|
+
logger.info "-----> Verifying User ... "
|
|
225
228
|
unless File.exist? "#{container_path}/env"
|
|
226
229
|
puts "Environment could not be loaded ... Failed."
|
|
227
230
|
exit 1
|