Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-cgt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4aefbd
)
support heroku's env var for port number
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 25 Jul 2012 20:52:59 +0000
(16:52 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 25 Jul 2012 20:52:59 +0000
(16:52 -0400)
server.coffee
patch
|
blob
|
history
diff --git
a/server.coffee
b/server.coffee
index
36b6862
..
196a0b8
100644
(file)
--- a/
server.coffee
+++ b/
server.coffee
@@
-14,7
+14,7
@@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-listen_port = process.env.app_port ? 9988
+listen_port = process.env.PORT ? process.env.app_port ? 9988
sys = require 'sys'
fs = require 'fs'
http = require 'http'