title: Running ember.js application and node.js backend in grunt server
body: <p>I am working on an application which has ember.js at frontend and node.js + express.js at backend. The ember.js front is based on yeoman generated template.</p>
  
  <p>During development, how can I run backend and front application in same server and achieve 'liverreload'. The yeoman generated grunt.js file only runs ember application in liverreload enabled server. I dont want to runt one server for front end and one for back end.</p>
  
  <p>P.S. In production version, I am starting node server and serving ember application via express static directory.</p>
  
  <p>Below is the my node/express code:</p>
  
  <pre><code>var gzippo = require('gzippo');
  var express = require('express');
  var app = express();
  
  app.configure(function(){
      app.use(express.logger('dev'));
      app.use(express.bodyParser());
      app.use(express.methodOverride());
      app.use(app.router);
      app.use(gzippo.staticGzip("" + __dirname + "/dist")); // built ember application is deployed in this dir
  });
  
  app.configure('development', function(){
      app.use(express.errorHandler());
  });
  
  app.use(function(req, res, next){
      console.log('%s %s', req.method, req.url);
      console.log('__dirname : %s', __dirname);
      next();
  });
  
  app.post('/', function(req, res, next){
      req.method = "GET";
      next();
  });
  
  var port = process.env.PORT || 9000;
  var host = 'localhost.com'
  app.listen(port, host, function() {
      console.log("Listening on " + port);
  });
  </code></pre>
  
  <p>There is no change in yeoman generated grunt.js file. Please guide me how I can achieve above explained scenario.</p>
  
  <p>Thanks</p>