JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
support heroku's env var for port number
authorJason Woofenden <jason@jasonwoof.com>
Wed, 25 Jul 2012 20:52:59 +0000 (16:52 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Wed, 25 Jul 2012 20:52:59 +0000 (16:52 -0400)
server.coffee

index 36b6862..196a0b8 100644 (file)
@@ -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'