Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changing default ports to 8100, 8101, fixing port parameters

  • Loading branch information...
commit 39ac72a1163c18a8d301de0297e0087731947f0d 1 parent 0fea193
@winton authored
Showing with 7 additions and 7 deletions.
  1. +6 −6 README.md
  2. +1 −1  lib/puggernaut/server.rb
View
12 README.md
@@ -30,7 +30,7 @@ Run the <code>puggernaut</code> binary with optional port numbers:
puggernaut &lt;http port&gt; &lt;tcp port&gt;
</pre>
-The default HTTP and TCP ports are 8000 and 8001, respectively.
+The default HTTP and TCP ports are 8100 and 8101, respectively.
Set up proxy pass
-----------------
@@ -44,8 +44,8 @@ If you do not see your web server below, [Google](http://google.com) is your fri
*http.conf*
<pre>
-ProxyPass /long_poll http://localhost:8000/
-ProxyPassReverse /long_poll http://localhost:8000/
+ProxyPass /long_poll http://localhost:8100/
+ProxyPassReverse /long_poll http://localhost:8100/
</pre>
### Nginx
@@ -54,7 +54,7 @@ ProxyPassReverse /long_poll http://localhost:8000/
<pre>
location /long_poll {
- proxy_pass http://localhost:8000/;
+ proxy_pass http://localhost:8100/;
}
</pre>
@@ -64,7 +64,7 @@ Send push messages
<pre>
require 'puggernaut'
-client = Puggernaut::Client.new("localhost:8001", "localhost:9001")
+client = Puggernaut::Client.new("localhost:8101", "localhost:9101")
client.push :channel => "message"
client.push :channel => [ "message 1", "message 2" ], :channel_2 => "message"
</pre>
@@ -109,7 +109,7 @@ server {
passenger_enabled on;
location /long_poll {
- proxy_pass http://localhost:8000/;
+ proxy_pass http://localhost:8100/;
}
}
</pre>
View
2  lib/puggernaut/server.rb
@@ -7,7 +7,7 @@ class Server
include Logger
- def initialize(http_port=8000, tcp_port=http_port+1)
+ def initialize(http_port=8100, tcp_port=http_port.to_i+1)
puts "\nPuggernaut is starting on #{http_port} (HTTP) and #{tcp_port} (TCP)"
puts "*snort*\n\n"
Please sign in to comment.
Something went wrong with that request. Please try again.