smartcloud 0.0.80 → 0.0.81

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd5a0d5108f2ddc5453619ebc113991305fc33990cb3f5d9d3a1df6623a786ad
4
- data.tar.gz: be2b54438a8c40e2dec8833a7e190cd8a006a4273d3a25162b7064b8781be6af
3
+ metadata.gz: 646078f60f1b097477a66ed4c5c4fdbbf63f8d1537267bc16a574cbfaaa93592
4
+ data.tar.gz: 47d48167d8f10499b4141fc18bbe39092c143046cee9566f6729721b99e7bea5
5
5
  SHA512:
6
- metadata.gz: 6a14787a57ee436459584250af4092033d0fb1329c9f9b8bfd290f85c330fe8e24a953a5eef4359e7a48024619ce557a4992a0a9a37327a6cddfd29a7d175635
7
- data.tar.gz: 395f5d5f3e364cc656881b30d0821b3891bc6338c6a5c9fb4bda61d2a2d3a16deeb2bd0c943422d3f15554c8ed8c9fb3fcc75fd09516dd9779f46ebc52d7a6ce
6
+ metadata.gz: 5eab2db60ccff6fd96267e109c183e1aafd9978649c802dbc3e79e48bc7f2a360e3f304afbb3b2b4e54acdd61ee52fa22fd7b6df2a8621341b03852b1255c1e3
7
+ data.tar.gz: 600a96782744b59d605be2df81c88c9885dadd135f5a4ec92b9038c85fa48b1fce3e61fb151590d970e0b6d59eacbcfa4de178bca39dbf052997c0fbe1528093
@@ -3,10 +3,7 @@ class Buildpacker
3
3
  end
4
4
 
5
5
  def pack
6
- puts "---------------------------------------------------------------------------"
7
-
8
6
  pack_rails if File.exist? "bin/rails"
9
-
10
7
  puts "-----> Could not continue ... Launch Failed."
11
8
  end
12
9
 
@@ -15,9 +12,11 @@ class Buildpacker
15
12
  FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
16
13
 
17
14
  puts "-----> Performing bundle install ... "
18
- if system("bundle install")
15
+ if system("bundle install --deployment --clean --without development test")
19
16
  puts "-----> Installing Javascript Dependencies & Pre-compiling Assets ... "
20
- if system("bundle exec rails assets:precompile")
17
+ if system("bundle exec rails assets:precompile", out: File::NULL)
18
+ puts "done"
19
+
21
20
  puts "-----> Running Web Server ... "
22
21
  if system("foreman start -f Procfile")
23
22
  puts "-----> Launched Application ... Success."
@@ -218,10 +218,13 @@ module Smartcloud
218
218
  end
219
219
 
220
220
  def self.prereceive_app(appname, username, oldrev, newrev, refname)
221
+ STDOUT.sync = true
222
+ logger = Logger.new(STDOUT)
223
+
221
224
  container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/containers/#{appname}"
222
225
 
223
226
  ## Verify the user and ensure the user is correct and has access to this repository
224
- print "-----> Verifying User ... "
227
+ logger.info "-----> Verifying User ... "
225
228
  unless File.exist? "#{container_path}/env"
226
229
  puts "Environment could not be loaded ... Failed."
227
230
  exit 1
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.80
4
+ version: 0.0.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard