Permalink
Browse files

Installation script

  • Loading branch information...
1 parent bc8ecf8 commit 11fb7c510c9ad2a13475e9add0f8a53600e84d5e Anatoliy Chakkaev committed May 22, 2011
Showing with 22 additions and 0 deletions.
  1. +22 −0 install.js
View
@@ -0,0 +1,22 @@
+var config = [
+ 'development:',
+ ' url: "http://1.lvh.me"',
+ ' key: key',
+ ' secret: secret',
+ ' connectPath: /twitter_connect',
+ ' callbackPath: /twitter_callback',
+ 'production:',
+ ' url: "http://example.com"',
+ ' key: key',
+ ' secret: secret',
+ ' connectPath: /twitter_connect',
+ ' callbackPath: /twitter_callback'
+].join('\n');
+
+var fs = require('fs');
+var path = require('path');
+
+if (path.existsSync(app.root + '/config') && !path.existsSync(app.root + '/config/twitter.yml')) {
+ fs.writeFileSync(app.root + '/config/twitter.yml', config);
+}
+

0 comments on commit 11fb7c5

Please sign in to comment.