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 +4 -4
- data/lib/smartcloud/grids/runner.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a74085eed07f6f0adbbb2a9af9d1862eac65cd55da66485768313dd3e678d747
|
4
|
+
data.tar.gz: a0e8bbf7934f76dce02a3a8e748f5eb1193d25d2419a150b6cb54f3beabd26a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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."
|