nginx-osx 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/HELP +3 -5
  2. data/README.rdoc +19 -1
  3. data/VERSION +1 -1
  4. data/lib/nginx-osx.rb +2 -2
  5. data/nginx-osx.gemspec +1 -1
  6. metadata +1 -1
data/HELP CHANGED
@@ -2,15 +2,13 @@ USAGE:
2
2
  nginx-osx [cmd]
3
3
 
4
4
  install [--passenger]
5
- - install nginx via macports
6
- install_passenger
7
- - install passenger for nginx
5
+ - install nginx via custom macports port file from crigor
8
6
  setup
9
7
  - setup the basic nginx.conf file and the vhost directories
10
8
  add [--passenger, --host Hostname]
11
9
  - add the current directory as a vhost
12
- run
13
- - run the current directory as the default vhost (symlinks in the vhost)
10
+ make_current
11
+ - make the current directory as the default vhost (symlinks in the vhost) i.e. localhost if no host was provided
14
12
  start
15
13
  - start nginx
16
14
  stop
data/README.rdoc CHANGED
@@ -1,6 +1,24 @@
1
1
  = nginx-osx
2
2
 
3
- Description goes here.
3
+ Use nginx in development on multiple projects with ease. Supports nginx -> mongrel and nginx -> passenger configurations. Also installs nginx and passenger for you to ease setup.
4
+
5
+ == Install
6
+ sudo gem install nginx-osx
7
+ sudo nginx-osx install
8
+ sudo nginx-osx setup
9
+
10
+ == Usage
11
+ In your rails project for passenger to access from project.local:
12
+ sudo nginx-osx add --passenger --host project.local
13
+ sudo nginx-osx start
14
+
15
+ In your rails project for mongrel using just localhost:
16
+ sudo nginx-osx add
17
+ nginx-osx make_current
18
+ nginx-osx start
19
+
20
+ Help
21
+ nginx-osx help
4
22
 
5
23
  == Copyright
6
24
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/lib/nginx-osx.rb CHANGED
@@ -59,7 +59,7 @@ CMD
59
59
  end
60
60
  end
61
61
 
62
- def run
62
+ def make_current
63
63
  `sudo ln -fs #{current_config_path} /opt/local/etc/nginx/vhosts/current.conf`
64
64
  `sudo /opt/local/sbin/nginx -t`
65
65
  puts `sudo /opt/local/sbin/nginx`
@@ -100,7 +100,7 @@ CMD
100
100
  end
101
101
 
102
102
  def current_config_path
103
- passenger && host ? "/opt/local/etc/nginx/vhosts/#{current_config_name}.conf" : "/opt/local/etc/nginx/configs/#{current_config_name}.conf"
103
+ host ? "/opt/local/etc/nginx/vhosts/#{current_config_name}.conf" : "/opt/local/etc/nginx/configs/#{current_config_name}.conf"
104
104
  end
105
105
 
106
106
  def usage
data/nginx-osx.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nginx-osx}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gabe Varela"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nginx-osx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabe Varela