Skip to content

Commit 636e45e

Browse files
committed
simplify deploymeny and serving
1 parent b45be49 commit 636e45e

File tree

5 files changed

+12
-25
lines changed

5 files changed

+12
-25
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules
2-
public-min
32
*.log
43
.DS_Store

bin/server

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"email": "r.hackr@gmail.com"
77
},
88
"description": "Generate the CSS for a tooltip arrow",
9-
"main": "",
109
"repository": {
1110
"type": "git",
1211
"url": "git://github.com/hojberg/cssarrowplease.git"
@@ -17,14 +16,11 @@
1716
],
1817
"homepage": "http://cssarrowplease.com/",
1918
"scripts": {
20-
"start": "node ./bin/server"
19+
"start": "node ./server.js"
2120
},
2221
"dependencies": {
2322
"connect": "~2.0.3"
2423
},
25-
"devDependencies": {
26-
"assetgraph-builder": ">=0.2.37"
27-
},
2824
"engines": {
2925
"node": ">=0.6"
3026
},

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2>Arrow configuration</h2>
5656
<code class='code' readonly='readonly'></code>
5757
<div class='copy_code'></div>
5858
</div>
59-
59+
6060
<a href="http://github.com/hojberg/cssarrowplease" class='fork_me ir'>
6161
Fork me on Github
6262
</a>

server.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env node
2+
3+
var connect = require('connect');
4+
var http = require('http');
5+
var port = process.env.PORT || 3000;
6+
var static = connect.static('public');
7+
8+
console.log('CSSArrowPlease on http://localhost:' + port);
9+
10+
http.createServer( connect().use( static ) ).listen( port );

0 commit comments

Comments
 (0)