Skip to content

Commit

Permalink
Merge pull request #35 from euforic/TIMOB-13763
Browse files Browse the repository at this point in the history
[TIMOB-13763]: LiveView: App fails to start with LiveView if the server is already enabled with a different app
  • Loading branch information
Christian Sullivan committed Jun 14, 2013
2 parents c9da949 + 1460d0b commit 1bfe271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hook/lvhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ exports.init = function(logger, config, cli) {
cli.addHook('build.pre.compile', {
priority: 3000,
post: function(build, finished) {
exec(escape(__dirname, '../bin/liveview-server') + ' stop');
if (cli.argv.liveview) {
debug('Running post:build.pre.compile hook');
var resourceDir = path.resolve(cli.argv['project-dir'], 'Resources');
Expand Down Expand Up @@ -194,8 +193,9 @@ exports.init = function(logger, config, cli) {
*/

cli.addHook('build.post.compile', function(build, finished) {
debug('Running post:build.post.compile hook');
exec(escape(__dirname, '../bin/liveview-server') + ' stop --no-colors');
if (cli.argv.liveview) {
debug('Running post:build.post.compile hook');
var binDIR = join(__dirname, '../bin/liveview-server');
var cmdOpts = [
binDIR,
Expand Down

0 comments on commit 1bfe271

Please sign in to comment.