smartcloud 0.0.161 → 0.0.162
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: baf79aac78353757357ec423418b2d68cd71e48dcdc5adc3c403f20a5c67a393
|
4
|
+
data.tar.gz: 2d7f15ae683490d9a4f59b0d80e7c99398493e25e0ecdd3859c93cb7fbdf27a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ef4183459fce92ebafe55776f065e15dd4d0d56b772a0b80bc1ba59d5f4f7e31f0ec38b7c4ebb1238424ae2cbd46d871d38de912fd6f11f0faab30d4cd49b9
|
7
|
+
data.tar.gz: f67226982bcf81d4437701b5d96fc6d6ea769d8dd08799fa4364a71a442353fb73d1f87053c7a54a21c69db869a09cb5ec915c37646226a5762e8924328725cd
|
data/bin/buildpacker
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
module Smartcloud
|
2
|
+
module Grids
|
3
|
+
class Buildpacker < Smartcloud::Base
|
4
|
+
def initialize
|
5
|
+
end
|
6
|
+
|
7
|
+
def pack
|
8
|
+
pack_rails if File.exist? "bin/rails"
|
9
|
+
logger.info "Could not continue ... Launch Failed."
|
10
|
+
end
|
11
|
+
|
12
|
+
def pack_rails
|
13
|
+
# Remove server.pid if it exists
|
14
|
+
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
15
|
+
|
16
|
+
logger.info "Performing bundle install ..."
|
17
|
+
if system("bundle install --deployment --clean")
|
18
|
+
logger.info "Installing Javascript Dependencies & Pre-compiling Assets ..."
|
19
|
+
if system("bundle exec rails assets:precompile", out: File::NULL)
|
20
|
+
logger.debug "Starting Server ..."
|
21
|
+
if system("god -c Godfile -D")
|
22
|
+
logger.info "Launched Application ... Success."
|
23
|
+
end
|
24
|
+
# exit 0
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.162
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timeboard
|
@@ -29,8 +29,9 @@ files:
|
|
29
29
|
- lib/smartcloud.rb
|
30
30
|
- lib/smartcloud/base.rb
|
31
31
|
- lib/smartcloud/boot.rb
|
32
|
-
- lib/smartcloud/buildpacker.rb
|
33
32
|
- lib/smartcloud/docker.rb
|
33
|
+
- lib/smartcloud/grids/buildpacker.rb
|
34
|
+
- lib/smartcloud/grids/grid-buildpacker/.keep
|
34
35
|
- lib/smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d/.keep
|
35
36
|
- lib/smartcloud/grids/grid-nginx/fastcgi.conf
|
36
37
|
- lib/smartcloud/grids/grid-nginx/nginx.tmpl
|
@@ -54,6 +55,7 @@ files:
|
|
54
55
|
- lib/smartcloud/logger.rb
|
55
56
|
- lib/smartcloud/machine.rb
|
56
57
|
- lib/smartcloud/templates/dotsmartcloud/config/environment.rb
|
58
|
+
- lib/smartcloud/templates/dotsmartcloud/grids/grid-buildpacker/.keep
|
57
59
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep
|
58
60
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep
|
59
61
|
- lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module Smartcloud
|
2
|
-
class Buildpacker < Smartcloud::Base
|
3
|
-
def initialize
|
4
|
-
end
|
5
|
-
|
6
|
-
def pack
|
7
|
-
pack_rails if File.exist? "bin/rails"
|
8
|
-
logger.info "Could not continue ... Launch Failed."
|
9
|
-
end
|
10
|
-
|
11
|
-
def pack_rails
|
12
|
-
# Remove server.pid if it exists
|
13
|
-
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
14
|
-
|
15
|
-
logger.info "Performing bundle install ..."
|
16
|
-
if system("bundle install --deployment --clean")
|
17
|
-
logger.info "Installing Javascript Dependencies & Pre-compiling Assets ..."
|
18
|
-
if system("bundle exec rails assets:precompile", out: File::NULL)
|
19
|
-
logger.debug "Starting Server ..."
|
20
|
-
if system("god -c Godfile -D")
|
21
|
-
logger.info "Launched Application ... Success."
|
22
|
-
end
|
23
|
-
# exit 0
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|