Skip to content

Commit

Permalink
Wow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Aug 15, 2010
1 parent f3bc9b8 commit 31abbd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'sys'
sys = require 'sys'
require.paths.unshift('vendor/.npm/.cache/express/1.0.0rc/package/lib')
require.paths.unshift('vendor/.npm/.cache/connect/0.2.3/package/lib')

Expand All @@ -8,4 +8,4 @@ app.get "/", (req,res)-> res.send "Hello world"

app.listen parseInt(process.env.PORT) || 8000

puts "Up and running on #{process.env.PORT || 8000}..."
sys.puts "Up and running on #{process.env.PORT || 8000}..."
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(function() {
var app;
require('sys');
var app, sys;
sys = require('sys');
require.paths.unshift('vendor/.npm/.cache/express/1.0.0rc/package/lib');
require.paths.unshift('vendor/.npm/.cache/connect/0.2.3/package/lib');
app = require("express").createServer();
app.get("/", function(req, res) {
return res.send("Hello world");
});
app.listen(parseInt(process.env.PORT) || 8000);
puts(("Up and running on " + (process.env.PORT || 8000) + "..."));
sys.puts(("Up and running on " + (process.env.PORT || 8000) + "..."));
})();

0 comments on commit 31abbd4

Please sign in to comment.