meroku 0.1.32 → 0.1.33

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
  SHA1:
3
- metadata.gz: 58370b427d0c86a421e243c887c43265ae302e7e
4
- data.tar.gz: f979f98c4f4951718d65aa6b73c7f7b292862ca7
3
+ metadata.gz: f07a70cb35457a12605fcf9885eb4cc7598c0fb5
4
+ data.tar.gz: d613be7e49cf4c6ecec5c0f75389d93293f968a7
5
5
  SHA512:
6
- metadata.gz: a1c9dbf109b8b9484bb2d2f6b9df555b395934ac6a525b9ec12a3aab106c619a1d5d92ef9cb7c86cae6027d11e9b98c93063073be4a5d64bd863a23255195926
7
- data.tar.gz: 7c64cfd1cff3110771b8095811569bd0233594cd8031dbf62a073e57ede1fab35f9a8d96f4259d6483a712c5ac45e3a2792825d8698ee5e8a082da0e15c37084
6
+ metadata.gz: e37b6c1361ae5c4631118feaca1adea8860aa516c3edeeba27524d0f5aa08fed45db7e9d9f514ff8021c035975c9515885d07328006b98deac06fbfb48250194
7
+ data.tar.gz: a26af9d253cde6e069eb7a583df38af18ae92f851c159a16c46027e277bd24283dd0bee006d33bf49b3a895c6841db86a5afd167108c9e538ebff69f25225f3f
@@ -141,6 +141,7 @@ module Meroku
141
141
 
142
142
 
143
143
  # start customer rails apps here wipwip
144
+ ssh3(ip,"cd meroku/rails_app; RAILS_ENV=production rake meroku:start_apps")
144
145
 
145
146
  ssh3(ip,"sudo /opt/bitnami/ctlscript.sh stop apache")
146
147
  ssh3(ip,"sudo /opt/bitnami/ctlscript.sh restart nginx")
data/lib/meroku/util.rb CHANGED
@@ -130,7 +130,15 @@ module Meroku
130
130
  `sudo -i -u u#{user.id} /bin/bash -c 'curl -sSL https://get.rvm.io | bash'`
131
131
  end
132
132
  end
133
-
133
+
134
+ def self.start_apps
135
+ puts "DB8 Starting #{Meroku::App.all.size} apps ..."
136
+ Meroku::App.all.each do |app|
137
+ puts "DB8 Starting app #{app.id} #{app.name}"
138
+ app_owner_id = Meroku::App::Collaborator.where(app_id: app.id).first.user_id
139
+ `sudo -i -u u#{app_owner_id} /bin/bash -c 'source /opt/githooks/start_app; start_app "/home/u#{app_owner_id}/#{app.name}.git"'`
140
+ end
141
+
134
142
  def public_key_exists?
135
143
  File.exist?(Dir.home + "/.ssh/id_rsa.pub")
136
144
  end
@@ -1,3 +1,3 @@
1
1
  module Meroku
2
- VERSION = "0.1.32"
2
+ VERSION = "0.1.33"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meroku System