Browse files

Getting it heroku ready

  • Loading branch information...
1 parent 17eab17 commit 7af790d6eaa33a8b3780ae04b71ff46b5ea47740 @temas temas committed Jun 26, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −0 Procfile
  2. +3 −3 app.js
View
1 Procfile
@@ -0,0 +1 @@
+web: node app.js
View
6 app.js
@@ -7,11 +7,11 @@ var sprintf = require('sprintf').sprintf;
var async = require('async');
// The port that this express app will listen on
-var port = 8442;
+var port = process.env.port || 8442;
// Your client ID and secret from http://dev.singly.com/apps
-var clientId = process.argv[2] || '';
-var clientSecret = process.argv[3] || '';
+var clientId = process.env["OAUTH_CLIENT_ID"] || process.argv[2] || '';
+var clientSecret = process.env["OAUTH_CLIENT_SECRET"] || process.argv[3] || '';
var hostBaseUrl = process.argv[4] || 'http://localhost:' + port;
var apiBaseUrl = process.argv[5] || 'https://api.singly.com';

0 comments on commit 7af790d

Please sign in to comment.