smartcloud 0.0.171 → 0.0.172
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/buildpacker.rb +8 -2
- data/lib/smartcloud/grids/runner.rb +1 -1
- data/lib/smartcloud/logger.rb +2 -0
- 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: 3669c3224f7bb59e2ceff55f8828dec6c3fa83854072ac7f958c207e209a1eb5
|
4
|
+
data.tar.gz: b96fbc354755c55be1eb1423125a0b81aed719c5169f5cf8b5e7d6a287bc3acc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100df51136aa3a767e72ef13d78db0783d08a35331e83d206dcb39eaad95777db27ff01a47049a810e9376cc057dc0fbfec5a5256a55e1c88f955d75e91cd7de
|
7
|
+
data.tar.gz: c61c68a8362ba03d2e26d367838432b0aa96785962da455caadb82718ff3a0b3daa7ef138cf436007c481bbe30d2c9207948655a4d107c174f65871637869b7c
|
@@ -11,9 +11,9 @@ module Smartcloud
|
|
11
11
|
|
12
12
|
pack_rails if File.exist? "bin/rails"
|
13
13
|
|
14
|
-
logger.
|
14
|
+
logger.error "Could not continue ... Launch Failed."
|
15
15
|
logger.formatter = nil
|
16
|
-
exit
|
16
|
+
exit 12
|
17
17
|
end
|
18
18
|
|
19
19
|
def pack_rails
|
@@ -26,6 +26,7 @@ module Smartcloud
|
|
26
26
|
|
27
27
|
# Perform bundle install
|
28
28
|
def bundle_install?
|
29
|
+
logger.info "\n"
|
29
30
|
logger.info "Performing bundle install ..."
|
30
31
|
set_logger_formatter_tabs
|
31
32
|
Open3.popen2("bundle", "install", "--deployment", "--clean") do |stdin, stdout_and_stderr, wait_thr|
|
@@ -39,6 +40,7 @@ module Smartcloud
|
|
39
40
|
|
40
41
|
# Perform pre-compiling of assets
|
41
42
|
def precompile_assets?
|
43
|
+
logger.info "\n"
|
42
44
|
logger.info "Installing Javascript dependencies & pre-compiling assets ..."
|
43
45
|
set_logger_formatter_tabs
|
44
46
|
Open3.popen2("bundle", "exec", "rails", "assets:precompile") do |stdin, stdout_and_stderr, wait_thr|
|
@@ -52,14 +54,18 @@ module Smartcloud
|
|
52
54
|
|
53
55
|
# Perform starting of web server
|
54
56
|
def start_web_server?
|
57
|
+
logger.debug "\n"
|
55
58
|
logger.debug "Starting Web Server ..."
|
56
59
|
|
57
60
|
# Remove server.pid if it exists
|
58
61
|
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
59
62
|
|
60
63
|
# if system("god -c Godfile -D")
|
64
|
+
logger.info "\n"
|
61
65
|
logger.info "Launched Application ... Success."
|
66
|
+
# return true
|
62
67
|
# end
|
68
|
+
return false
|
63
69
|
end
|
64
70
|
|
65
71
|
def set_logger_formatter_arrow
|
@@ -228,7 +228,6 @@ module Smartcloud
|
|
228
228
|
return unless self.load_container_env_vars(container_path)
|
229
229
|
|
230
230
|
# Verify the user and ensure the user is correct and has access to this repository
|
231
|
-
logger.info "Verifying User ..."
|
232
231
|
unless ENV['USERNAME'] == username
|
233
232
|
logger.error "Unauthorized."
|
234
233
|
return
|
@@ -289,6 +288,7 @@ module Smartcloud
|
|
289
288
|
end
|
290
289
|
|
291
290
|
def self.start_app_rails(appname, container_path, container_path_with_version)
|
291
|
+
logger.info "\n"
|
292
292
|
logger.info "Ruby on Rails application detected."
|
293
293
|
|
294
294
|
# Setup rails env
|
data/lib/smartcloud/logger.rb
CHANGED