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.
- data/HELP +3 -5
- data/README.rdoc +19 -1
- data/VERSION +1 -1
- data/lib/nginx-osx.rb +2 -2
- data/nginx-osx.gemspec +1 -1
- 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
|
-
|
13
|
-
-
|
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
|
-
|
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.
|
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
|
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
|
-
|
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