smartcloud 0.1.0.beta4 → 0.1.0.beta5

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: c2193237edead97e61dd871f7ae5ae00af0a9005d40b0beeba2ab8ac3e010e68
4
- data.tar.gz: bd48522fff882387e0d66713801e8f263a8140f572cf1fc3fdb83ba7fcf682e1
3
+ metadata.gz: 62498c1f68025b362a0887fe07ff16f8f43eeae99955e9ff60b2098c10d7b0da
4
+ data.tar.gz: a85f8a5ac34a078ab695a6ca91db41c5aa06692b2ab45b951cd7e81f31a741a3
5
5
  SHA512:
6
- metadata.gz: d545a880e5e673c37d78c37a6ebf31234bf9f1d68f002a3535cd623e8b49ff84e6b6e7b028367a6657e963fe9606cbe388d0d096389d5c5c76858a2203f286ae
7
- data.tar.gz: 762d37be0e30f250c140d7fd21d8a0f01a40810d06baa136fcd4f775bb607a17a37efdff433a6fc7a5dec4dfe925bfdf4305a86b95abee3951cd42a8c7b7cf63
6
+ metadata.gz: 2bc01a890b6cefe16b7aab7f6fce7901a73de54a22ff2eceb05999be9cfd31218a9e4e02670470f09992e513c6036ccb365b9563dfe22761e76fa7c1d03a5fc3
7
+ data.tar.gz: 502d8097742296cbc37ad72114904123d7d8f4bbcbf8d66fc8d5bc010e016aea0905bd6abb1d41c99f5e037f01c58cbd98c0db25088df8984e6e9c1873d4a7fc
@@ -71,7 +71,7 @@ module Smartcloud
71
71
  # Remove server.pid if it exists
72
72
  FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
73
73
 
74
- if system("bundle", "exec", "puma", "-C", "config/puma.rb", out: File::NULL)
74
+ if system("bundle", "exec", "puma", "-C", "config/puma.rb")
75
75
  return true
76
76
  end
77
77
  return false
@@ -24,7 +24,6 @@ WORKDIR "/app"
24
24
 
25
25
  # Gems
26
26
  RUN gem install smartcloud --pre && \
27
- gem install bundler && \
28
- gem install god
27
+ gem install bundler
29
28
 
30
29
  CMD ["buildpacker", "start"]
@@ -307,20 +307,6 @@ module Smartcloud
307
307
  FileUtils.mkdir_p("#{container_path}/app/public")
308
308
  FileUtils.mkdir_p("#{container_path}/app/node_modules")
309
309
 
310
- # Setup Godfile
311
- unless File.exist? "#{container_path_with_version}/Godfile"
312
- logger.warn "Godfile not detected. Adding a default Godfile. It is recommended to add your own Godfile."
313
- page = <<~"HEREDOC"
314
- God.watch do |w|
315
- w.name = "web"
316
- w.start = "bundle exec puma -C config/puma.rb"
317
- w.behavior(:clean_pid_file)
318
- w.keepalive
319
- end
320
- HEREDOC
321
- system("echo '#{page}' > #{container_path_with_version}/Godfile")
322
- end
323
-
324
310
  # Creating & Starting container
325
311
  container_id = `docker ps -a -q --filter='name=^#{appname}_1$' --filter='status=running'`.chomp
326
312
  new_container = container_id.empty? ? "#{appname}_1" : "#{appname}_2"
@@ -330,7 +316,7 @@ module Smartcloud
330
316
  if system("docker create \
331
317
  --name='#{new_container}' \
332
318
  --env-file='#{container_path}/env' \
333
- --expose='5000' \
319
+ --expose='3000' \
334
320
  --volume='#{Smartcloud.config.user_home_path}/.smartcloud/config:#{Smartcloud.config.user_home_path}/.smartcloud/config' \
335
321
  --volume='#{container_path_with_version}:/app' \
336
322
  --volume='#{container_path}/app/vendor/bundle:/app/vendor/bundle' \
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.1.0.beta4
4
+ version: 0.1.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh