Permalink
Browse files

use config.js for system-specific config info.

  • Loading branch information...
1 parent bebdb30 commit db1591fbdaa9da8c44feb93984b0a5960bf73b85 @toolness committed Jul 14, 2012
Showing with 10 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +3 −2 app.js
  3. +6 −0 config.sample.js
View
@@ -1,3 +1,4 @@
+config.js
node_modules
static/recording.*
static/metadata.json
View
5 app.js
@@ -1,11 +1,12 @@
var express = require('express'),
fs = require('fs'),
spawn = require('child_process').spawn,
+ config = require('./config'),
app = express.createServer();
var STATIC_DIR = __dirname + '/static',
- FFMPEG_VORBIS = 'ffmpeg',
- FFMPEG_MP3 = '/Applications/ffmpegX.app/Contents/Resources/ffmpeg';
+ FFMPEG_VORBIS = config.ffmpeg.vorbis,
+ FFMPEG_MP3 = config.ffmpeg.mp3;
app.post('/metadata', function(req, res) {
var filename = STATIC_DIR + '/metadata.json',
View
@@ -0,0 +1,6 @@
+module.exports = {
+ ffmpeg: {
+ vorbis: '/Applications/Miro Video Converter.app/Contents/Resources/ffmpeg',
+ mp3: '/Applications/ffmpegX.app/Contents/Resources/ffmpeg'
+ }
+};

0 comments on commit db1591f

Please sign in to comment.