Permalink
Browse files

make it heroku

  • Loading branch information...
1 parent a9982db commit c9c8e6191989d847795792fb175c72a3b2ed802b @okayzed okayzed committed May 8, 2012
View
@@ -0,0 +1 @@
+web: node app.js
View
24 app.js
@@ -1,13 +1,25 @@
-var app = require('http').createServer(handler)
+var express = require('express')
+ , app = express.createServer()
, io = require('socket.io').listen(app)
- , fs = require('fs');
+ ;
-function handler (req, res) {
- res.writeHead(200);
- res.end("You've made it.");
+
+// assuming io is the Socket.IO server object
+if (NODE_ENV == "production") {
+ io.configure(function () {
+ io.set("transports", ["xhr-polling"]);
+ io.set("polling duration", 10);
+ });
}
-app.listen(8888);
+app.listen(9999);
+app.use(express.static(__dirname + '/public'));
+
+app.get("/", function(req, res) {
+ res.writeHead(200);
+ res.end("You've made it.");
+});
+//app.listen(8888);
var _id = 0;
function getID() {
View
@@ -0,0 +1,8 @@
+{
+ "name": "harmonies",
+ "version": "0.0.1",
+ "dependencies": {
+ "express": "2.2.0",
+ "socket.io": "0.9.6"
+ }
+}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
var room = window.location.hash || "#default";
-var socket = io.connect('http://nicesho.es:8888');
+var socket = io.connect('/');
socket.emit('join', { room: room });
File renamed without changes.
File renamed without changes.
@@ -63,24 +63,24 @@
</head>
<body>
<script type="text/javascript" src="https://raw.github.com/LearnBoost/socket.io-client/master/dist/socket.io.min.js"></script>
- <script type="text/javascript" src="js/brushes/circles.js"></script>
- <script type="text/javascript" src="js/brushes/chrome.js"></script>
- <script type="text/javascript" src="js/brushes/fur.js"></script>
- <script type="text/javascript" src="js/brushes/grid.js"></script>
- <script type="text/javascript" src="js/brushes/longfur.js"></script>
- <script type="text/javascript" src="js/brushes/ribbon.js"></script>
- <script type="text/javascript" src="js/brushes/shaded.js"></script>
- <script type="text/javascript" src="js/brushes/simple.js"></script>
- <script type="text/javascript" src="js/brushes/sketchy.js"></script>
- <script type="text/javascript" src="js/brushes/squares.js"></script>
- <script type="text/javascript" src="js/brushes/web.js"></script>
- <script type="text/javascript" src="js/colorutils.js"></script>
- <script type="text/javascript" src="js/colorselector.js"></script>
- <script type="text/javascript" src="js/palette.js"></script>
- <script type="text/javascript" src="js/menu.js"></script>
- <script type="text/javascript" src="js/about.js"></script>
- <script type="text/javascript" src="js/client.js"> </script>
- <script type="text/javascript" src="js/main.js"></script>
+ <script type="text/javascript" src="brushes/circles.js"></script>
+ <script type="text/javascript" src="brushes/chrome.js"></script>
+ <script type="text/javascript" src="brushes/fur.js"></script>
+ <script type="text/javascript" src="brushes/grid.js"></script>
+ <script type="text/javascript" src="brushes/longfur.js"></script>
+ <script type="text/javascript" src="brushes/ribbon.js"></script>
+ <script type="text/javascript" src="brushes/shaded.js"></script>
+ <script type="text/javascript" src="brushes/simple.js"></script>
+ <script type="text/javascript" src="brushes/sketchy.js"></script>
+ <script type="text/javascript" src="brushes/squares.js"></script>
+ <script type="text/javascript" src="brushes/web.js"></script>
+ <script type="text/javascript" src="colorutils.js"></script>
+ <script type="text/javascript" src="colorselector.js"></script>
+ <script type="text/javascript" src="palette.js"></script>
+ <script type="text/javascript" src="menu.js"></script>
+ <script type="text/javascript" src="about.js"></script>
+ <script type="text/javascript" src="client.js"> </script>
+ <script type="text/javascript" src="main.js"></script>
</body>
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c9c8e61

Please sign in to comment.