Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
Generate the CSS for a tooltip arrow.
Check it out at http://cssarrowplease.com

## Contributing
You can simply open the public/index.html file in your browser
or start the development node app (not required): `node bin/server --development`

## License
CSSArrowPlease is Copyright © 2012 Simon Højberg. CSSArrowPlease is free software, and may be redistributed under the terms specified in the LICENSE file.
16 changes: 13 additions & 3 deletions bin/server
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#!/usr/bin/env node

var connect = require('connect'),
http = require('http');
http = require('http'),
port = process.env.PORT || 3000,
static;

var app = connect().use(connect.static('public-min', { maxAge: 365 * 24 * 60 * 60 * 1000}));
if (process.argv.indexOf('--development') !== -1) {
console.log('CSS Arrow Please in development on http://localhost:' + port);
static = connect.static('public');
}
else {
static = connect.static('public-min', {
maxAge: 365 * 24 * 60 * 60 * 1000
});
}

http.createServer(app).listen(process.env.PORT || 3000);
http.createServer( connect().use( static ) ).listen( port );