regenwolke_autons 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/regenwolke_autons/nginx_auton.rb +2 -4
- data/lib/regenwolke_autons/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: 9d2034747adb75f6143d812df5b2d00d1b656d54
|
4
|
+
data.tar.gz: 3fd645a04c50dd026061b3644a1c0c14db5b6ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5fed65846ea56c0044bb2dbc4d2f7c38a2978a3a299b85b836674136076fd17815263f53d96acf1047587ee0fbf81227c7f25f263154bc99ddd40d546639fa2
|
7
|
+
data.tar.gz: f7e03604be37fe4c8de0e68b9310b67904874a70941c1109f9a3ee3d51501d85c91ca3c40e24df0477ec6193bef8aaf09553536e14cef66fb785648939778fc8
|
@@ -20,9 +20,7 @@ module RegenwolkeAutons
|
|
20
20
|
def start_nginx
|
21
21
|
create_config
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
cp = ChildProcess.build(nginx_binary, '-p', '.', '-c', 'nginx.config')
|
23
|
+
cp = ChildProcess.build('nginx', '-p', '.', '-c', 'nginx.config')
|
26
24
|
cp.detach = true
|
27
25
|
cp.start
|
28
26
|
self.pid = cp.pid
|
@@ -44,7 +42,7 @@ module RegenwolkeAutons
|
|
44
42
|
end
|
45
43
|
|
46
44
|
def create_config
|
47
|
-
applications={'regenwolke' => [['localhost',
|
45
|
+
applications={'regenwolke' => [['localhost',ENV['PORT'] || 5000]]}
|
48
46
|
erb = ERB.new File.read(File.expand_path('../nginx_config.erb', __FILE__))
|
49
47
|
File.write("nginx.config",erb.result(binding))
|
50
48
|
end
|