recipiez 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/recipes/nginx.rb CHANGED
@@ -26,6 +26,11 @@ Capistrano::Configuration.instance(true).load do
26
26
 
27
27
  desc "Generates a simple proxy configuration for a nodejs application"
28
28
  task :nodejs do
29
+
30
+ unless exists? :node_port
31
+ set :node_port, 3000
32
+ end
33
+
29
34
  put render("nginx_node", binding), "#{application}.conf"
30
35
  sudo "mv #{application}.conf /etc/nginx/sites-available/#{application}.conf"
31
36
  begin
@@ -1,7 +1,7 @@
1
1
  # Generated by capistrano and the recipiez gem.
2
2
 
3
3
  upstream <%= application %> {
4
- server 127.0.0.1:<%= node_port ? node_port : '3000' %>;
4
+ server 127.0.0.1:<%= node_port %>;
5
5
  }
6
6
 
7
7
  # the nginx server instance
data/recipiez.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "recipiez"
7
- s.version = "0.1.0"
7
+ s.version = "0.1.1"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Alastair Brunton"]
10
10
  s.email = ["info@simplyexcited.co.uk"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recipiez
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton