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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfe447f8a41c13c058fac0654e4ea8fe3072a64c
4
- data.tar.gz: 6c62ccae4b482505cc030c5518359c3a38e4f7ff
3
+ metadata.gz: 9d2034747adb75f6143d812df5b2d00d1b656d54
4
+ data.tar.gz: 3fd645a04c50dd026061b3644a1c0c14db5b6ef2
5
5
  SHA512:
6
- metadata.gz: f67ce6c45904ec71d37f5dbe48d5e2a007e19109cf9ec495945cfd6b9a5f681535e7157b4411a419f496deaaa59f4bda546ccdc3535c88348608e8d982a6fe1e
7
- data.tar.gz: a0b5c4afd6e4d57869cb130439b205ce078d206a5d179673051d0b1afff5aa7886f12920a53483b5abcfcac6e89046be70219089e8a783f741335b726dd7172f
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
- nginx_binary = File.exist?('/usr/sbin/nginx') ? '/usr/sbin/nginx' : 'nginx'
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',[ENV['PORT'] || 5000]]]}
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
@@ -1,3 +1,3 @@
1
1
  module RegenwolkeAutons
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regenwolke_autons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dragan Milic