smartcloud 0.0.155 → 0.0.156
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 +4 -4
- data/lib/smartcloud/grids/runner.rb +5 -5
- 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: d0f4d3dda6b40f12732bfe026083343ca4b14e3df467ab9d50e5c73aff6069cc
|
|
4
|
+
data.tar.gz: c72c3cdbb604173423dae83b8b4338da8dd95523c1d3ef4e2f10a6da8fa48961
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a8ab72089a33b697c7947fdbdb331293510a30dec7125a99d9126118bc245d10ab6a27d3ba2aea4d45f4ae1ca54a66672490fb525604631b13af101ec2ba996
|
|
7
|
+
data.tar.gz: 6166b6b3035bddef48c7611f27c6e8d0f5dd7e7065dfd639ea859bb00af919f149041ba4d03c596db86a0787794ac9a6ac56c27a4ed87a8db00d9f65d763494c
|
|
@@ -224,9 +224,8 @@ module Smartcloud
|
|
|
224
224
|
end
|
|
225
225
|
logger.level = ::Logger::DEBUG
|
|
226
226
|
|
|
227
|
+
# Load vars and environment
|
|
227
228
|
container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/containers/#{appname}"
|
|
228
|
-
|
|
229
|
-
# Load ENV vars
|
|
230
229
|
return unless self.load_container_env_vars(container_path)
|
|
231
230
|
|
|
232
231
|
# Verify the user and ensure the user is correct and has access to this repository
|
|
@@ -306,6 +305,7 @@ module Smartcloud
|
|
|
306
305
|
|
|
307
306
|
def self.start_app_rails(appname, container_path, container_path_with_version)
|
|
308
307
|
# Stopping & Removing not required app containers
|
|
308
|
+
# TODO: To be removed after dynamic container switching has been implemented as it should be done in the end at the time of cleanup after the new container is running.
|
|
309
309
|
self.stop_app(appname)
|
|
310
310
|
|
|
311
311
|
logger.info "Ruby on Rails application detected."
|
|
@@ -328,10 +328,10 @@ module Smartcloud
|
|
|
328
328
|
# Setup Godfile
|
|
329
329
|
unless File.exist? "#{container_path_with_version}/Godfile"
|
|
330
330
|
logger.warn "WARNING: Godfile not detected. Adding a default Godfile. It is recommended to add your own Godfile."
|
|
331
|
-
page = <<~HEREDOC
|
|
331
|
+
page = <<~"HEREDOC"
|
|
332
332
|
God.watch do |w|
|
|
333
|
-
w.name =
|
|
334
|
-
w.start =
|
|
333
|
+
w.name = "web"
|
|
334
|
+
w.start = "bundle exec puma -C config/puma.rb"
|
|
335
335
|
w.behavior(:clean_pid_file)
|
|
336
336
|
w.keepalive
|
|
337
337
|
end
|