meroku 0.1.35 → 0.1.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meroku/cli/server.rb +0 -2
- data/lib/meroku/util.rb +1 -1
- data/lib/meroku/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fab3d36f45378aa59a84fc257ce6d9345ef595c
|
4
|
+
data.tar.gz: 84f8f421c5c7e795ead29392f81b9108e0a5ebb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e00f9cb57c26266c9efae0ee5a382d5c09ea5280308f1cd0ca8da2ac9929cfacd07c7aace13d8cf976eb7a26affc7906b9bef900496a6ab11f41440dabb81b7
|
7
|
+
data.tar.gz: 3c22eeeb9f45fe757720c659e59b6fac0d4869d7b5c6d0c75725e43d5cf02b6a619cd54c6366d7dae6dc6b18298a57b5f03e570470e29d58ec776ae0e8f3b480
|
data/lib/meroku/cli/server.rb
CHANGED
@@ -100,8 +100,6 @@ module Meroku
|
|
100
100
|
ssh2(ip,"sudo mkdir /opt/githooks; sudo chmod 777 /opt/githooks")
|
101
101
|
ssh2(ip,'cp ~/meroku/misc/githook_post-receive /opt/githooks/post-receive')
|
102
102
|
ssh2(ip,'cp ~/meroku/misc/start_app /opt/githooks/start_app')
|
103
|
-
ssh2(ip,'cp ~/meroku/misc/app_id_by_name /opt/githooks/app_id_by_name')
|
104
|
-
ssh2(ip,'cp ~/meroku/misc/user_id_by_name /opt/githooks/user_id_by_name')
|
105
103
|
|
106
104
|
ssh2(ip,"sudo chmod 777 /opt/githooks/* ")
|
107
105
|
ssh2(ip,"sudo ln -s /usr/bin/install /bin/install")
|
data/lib/meroku/util.rb
CHANGED
@@ -136,7 +136,7 @@ module Meroku
|
|
136
136
|
Meroku::App.all.each do |app|
|
137
137
|
puts "DB8 Starting app #{app.id} #{app.name}"
|
138
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 -
|
139
|
+
`sudo -i -u u#{app_owner_id} /bin/bash -lc 'source /opt/githooks/start_app; start_app "/home/u#{app_owner_id}/#{app.name}.git"'`
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
data/lib/meroku/version.rb
CHANGED