Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-cgt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get nodester port from ENV
[peach-cgt.git]
/
server.coffee
diff --git
a/server.coffee
b/server.coffee
index
f0ebddf
..
1ce56f2
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/>.
# 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 = 13850
+listen_port = process.env.app_port ? 9988
sys = require 'sys'
fs = require 'fs'
http = require 'http'
sys = require 'sys'
fs = require 'fs'
http = require 'http'
@@
-26,7
+26,7
@@
model = require './common.coffee'
games = {}
max_concurrent_games = 50
games = {}
max_concurrent_games = 50
-max_game_idle = 2 * 60 * 60 * 1000 # two hours (in miliseconds)
+max_game_idle = 3 * 60 * 60 * 1000 # three hours (in miliseconds)
# timeout function with args in convenient order
timeout = (ms, func) -> setTimeout func, ms
# timeout function with args in convenient order
timeout = (ms, func) -> setTimeout func, ms