smartcloud 0.4.2 → 0.4.3
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: 6229856d16664640cc0e9aa6d23906ee651ee4442637bfa5d7fed9db164f19c4
|
|
4
|
+
data.tar.gz: 2c81206bb6480c39388fc6cd70280ea713f38e8d6286d4c8ab5ad044aa2e47c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37eb0ba70543cb03e188c59147b7fd1244e5128cd9fd41f1c90eede73faca48f1730031ff27b97bdace860c1da18ff09b617d549525b8275fca00c874e725c78
|
|
7
|
+
data.tar.gz: 1df40b71466061ab2dd74ab93721168c93ce54f6da75af7f6ddf97fbffe65bb88814960ad96ed59d8a9d6dae9c26a1f090341358290c01bdb42d6f3b520e3938
|
|
@@ -35,10 +35,12 @@ module Smartcloud
|
|
|
35
35
|
FileUtils.mkdir_p("#{container_path}/app/public/assets")
|
|
36
36
|
FileUtils.mkdir_p("#{container_path}/app/public/packs")
|
|
37
37
|
FileUtils.mkdir_p("#{container_path}/app/node_modules")
|
|
38
|
+
FileUtils.mkdir_p("#{container_path}/app/storage")
|
|
38
39
|
FileUtils.mkdir_p("#{container_path_with_version}/vendor/bundle")
|
|
39
40
|
FileUtils.mkdir_p("#{container_path_with_version}/public/assets")
|
|
40
41
|
FileUtils.mkdir_p("#{container_path_with_version}/public/packs")
|
|
41
42
|
FileUtils.mkdir_p("#{container_path_with_version}/node_modules")
|
|
43
|
+
FileUtils.mkdir_p("#{container_path_with_version}/storage")
|
|
42
44
|
|
|
43
45
|
# Creating & Starting container
|
|
44
46
|
container_id = `docker ps -a -q --filter='name=^#{appname}_1$' --filter='status=running'`.chomp
|
|
@@ -58,6 +60,7 @@ module Smartcloud
|
|
|
58
60
|
--volume='#{container_path}/app/public/assets:/app/public/assets' \
|
|
59
61
|
--volume='#{container_path}/app/public/packs:/app/public/packs' \
|
|
60
62
|
--volume='#{container_path}/app/node_modules:/app/node_modules' \
|
|
63
|
+
--volume='#{container_path}/app/storage:/app/storage' \
|
|
61
64
|
--restart='always' \
|
|
62
65
|
--init \
|
|
63
66
|
--network='nginx-network' \
|
|
@@ -134,8 +137,14 @@ module Smartcloud
|
|
|
134
137
|
logger.info "Performing bundle install ..."
|
|
135
138
|
|
|
136
139
|
set_logger_formatter_tabs
|
|
140
|
+
|
|
141
|
+
unless system("bundle config set deployment 'true' && bundle config set clean 'true'")
|
|
142
|
+
logger.error "Could not complete bundle config setting."
|
|
143
|
+
return false
|
|
144
|
+
end
|
|
145
|
+
|
|
137
146
|
exit_status = nil
|
|
138
|
-
Open3.popen2e("bundle", "install"
|
|
147
|
+
Open3.popen2e("bundle", "install") do |stdin, stdout_and_stderr, wait_thr|
|
|
139
148
|
stdout_and_stderr.each { |line| logger.info "#{line}" }
|
|
140
149
|
exit_status = wait_thr.value.success?
|
|
141
150
|
end
|
|
@@ -46,7 +46,7 @@ module Smartcloud
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
def self.down
|
|
51
51
|
if Smartcloud::Docker.running?
|
|
52
52
|
# Stopping & Removing containers - in reverse order
|
|
@@ -65,7 +65,7 @@ module Smartcloud
|
|
|
65
65
|
puts "done"
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
|
-
end
|
|
68
|
+
end
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
end
|
data/lib/smartcloud/version.rb
CHANGED
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.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Timeboard
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-ssh
|
|
@@ -311,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
311
311
|
- !ruby/object:Gem::Version
|
|
312
312
|
version: 1.8.11
|
|
313
313
|
requirements: []
|
|
314
|
-
rubygems_version: 3.
|
|
314
|
+
rubygems_version: 3.1.2
|
|
315
315
|
signing_key:
|
|
316
316
|
specification_version: 4
|
|
317
317
|
summary: Full-stack deployment framework for Rails.
|