smartcloud 0.1.0.beta4 → 0.1.0.beta5
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: 62498c1f68025b362a0887fe07ff16f8f43eeae99955e9ff60b2098c10d7b0da
|
|
4
|
+
data.tar.gz: a85f8a5ac34a078ab695a6ca91db41c5aa06692b2ab45b951cd7e81f31a741a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bc01a890b6cefe16b7aab7f6fce7901a73de54a22ff2eceb05999be9cfd31218a9e4e02670470f09992e513c6036ccb365b9563dfe22761e76fa7c1d03a5fc3
|
|
7
|
+
data.tar.gz: 502d8097742296cbc37ad72114904123d7d8f4bbcbf8d66fc8d5bc010e016aea0905bd6abb1d41c99f5e037f01c58cbd98c0db25088df8984e6e9c1873d4a7fc
|
|
@@ -71,7 +71,7 @@ module Smartcloud
|
|
|
71
71
|
# Remove server.pid if it exists
|
|
72
72
|
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
|
73
73
|
|
|
74
|
-
if system("bundle", "exec", "puma", "-C", "config/puma.rb"
|
|
74
|
+
if system("bundle", "exec", "puma", "-C", "config/puma.rb")
|
|
75
75
|
return true
|
|
76
76
|
end
|
|
77
77
|
return false
|
|
@@ -307,20 +307,6 @@ module Smartcloud
|
|
|
307
307
|
FileUtils.mkdir_p("#{container_path}/app/public")
|
|
308
308
|
FileUtils.mkdir_p("#{container_path}/app/node_modules")
|
|
309
309
|
|
|
310
|
-
# Setup Godfile
|
|
311
|
-
unless File.exist? "#{container_path_with_version}/Godfile"
|
|
312
|
-
logger.warn "Godfile not detected. Adding a default Godfile. It is recommended to add your own Godfile."
|
|
313
|
-
page = <<~"HEREDOC"
|
|
314
|
-
God.watch do |w|
|
|
315
|
-
w.name = "web"
|
|
316
|
-
w.start = "bundle exec puma -C config/puma.rb"
|
|
317
|
-
w.behavior(:clean_pid_file)
|
|
318
|
-
w.keepalive
|
|
319
|
-
end
|
|
320
|
-
HEREDOC
|
|
321
|
-
system("echo '#{page}' > #{container_path_with_version}/Godfile")
|
|
322
|
-
end
|
|
323
|
-
|
|
324
310
|
# Creating & Starting container
|
|
325
311
|
container_id = `docker ps -a -q --filter='name=^#{appname}_1$' --filter='status=running'`.chomp
|
|
326
312
|
new_container = container_id.empty? ? "#{appname}_1" : "#{appname}_2"
|
|
@@ -330,7 +316,7 @@ module Smartcloud
|
|
|
330
316
|
if system("docker create \
|
|
331
317
|
--name='#{new_container}' \
|
|
332
318
|
--env-file='#{container_path}/env' \
|
|
333
|
-
--expose='
|
|
319
|
+
--expose='3000' \
|
|
334
320
|
--volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
|
|
335
321
|
--volume='#{container_path_with_version}:/app' \
|
|
336
322
|
--volume='#{container_path}/app/vendor/bundle:/app/vendor/bundle' \
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smartcloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.
|
|
4
|
+
version: 0.1.0.beta5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Timeboard
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-09-
|
|
11
|
+
date: 2019-09-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-ssh
|