smartcloud 0.0.83 → 0.0.84

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: 0a25efc095e4c286729b4c656ad819bc3c340fce40b390a860286f409505ace8
4
- data.tar.gz: 6c326486c6686a34a61ac288a76c2b652f3359dd3f161def22ef0d82984d89d2
3
+ metadata.gz: a74085eed07f6f0adbbb2a9af9d1862eac65cd55da66485768313dd3e678d747
4
+ data.tar.gz: a0e8bbf7934f76dce02a3a8e748f5eb1193d25d2419a150b6cb54f3beabd26a1
5
5
  SHA512:
6
- metadata.gz: 07e6397b996b8f13755f6f5736e4ed29ea875efd8641d7f98a2213e7846585f51ce057a46366dc549f7cd6519dda8e575bcdc40e9d26f7a239a0dc1ae1a21e26
7
- data.tar.gz: 8bcc770501a7d35abad3642e510870119e4a6b99cbb5c147eb721c8da159bb86667b5e029aeb5b8f99dee7a86aeb89933892afb775e3399e4e5616a3a9ae8fe1
6
+ metadata.gz: 6b72fe44ea92f5b709b11a0726da298ba73f49b03254e21f8b62922e38afd3f2c8df9291720e4589708ef54d7eb3d1e5517ca0ba669534d96e7343b835a4a431
7
+ data.tar.gz: 3962408d10060570c841e8e4e1d267a9b2f1ce27a029fda4325dc00835d0169cdc401dc8af071de3cc0af9803bfb48f69c16ecd8a9642e2f91e5d94a2027816f
@@ -219,7 +219,7 @@ module Smartcloud
219
219
 
220
220
  def self.prereceive_app(appname, username, oldrev, newrev, refname)
221
221
  # logger = Logger.new(STDOUT)
222
- $stdout.sync = true
222
+ # $stdout.sync = true
223
223
 
224
224
  container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/containers/#{appname}"
225
225
 
@@ -348,6 +348,10 @@ module Smartcloud
348
348
  system("grep -q '^RAILS_MASTER_KEY=' #{env_path} || echo 'RAILS_MASTER_KEY=yourmasterkey' >> #{env_path}")
349
349
  puts "-----> WARNING: Please set your RAILS_MASTER_KEY env var for this rails app." if system("grep -q '^RAILS_MASTER_KEY=yourmasterkey' #{env_path}")
350
350
 
351
+ # Setup gems folder. If this is not created then docker will create it while running the container,
352
+ # but the folder will have root user assigned instead of the current user.
353
+ FileUtils.mkdir_p("#{container_path}/gems")
354
+
351
355
  # Setup Godfile
352
356
  unless File.exist? "#{container_path_with_now_date}/Godfile"
353
357
  puts "-----> WARNING: Godfile not detected. Adding a default Godfile. It is recommended to add your own Godfile."
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.83
4
+ version: 0.0.84
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard