Skip to content

Commit

Permalink
Use LFMN_PORT environment variable for listening port, or 3000 if uns…
Browse files Browse the repository at this point in the history
…pecified
  • Loading branch information
JasonPuglisi committed May 3, 2016
1 parent 6b1493f commit 989f21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lastfm-now",
"version": "1.0.0",
"version": "1.0.1",
"description": "A now listening display for Last.fm.",
"author": "Jason Puglisi <[email protected]>",
"scripts": {
Expand All @@ -17,7 +17,7 @@
"body-parser": "^1.15.0",
"express": "^4.13.4",
"jade": "^1.11.0",
"request": "^2.69.0"
"request": "^2.72.0"
},
"private": true,
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ app.post('/now/weather', function(req, res) {
});
});

app.listen(3000);
app.listen(process.env.LFMN_PORT || 3000);

function parseUrl(url) {
return url.substring(1, url.length - 1);
Expand Down

0 comments on commit 989f21e

Please sign in to comment.