Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-13763]: LiveView: App fails to start with LiveView if the server is already enabled with a different app #35

Merged
merged 1 commit into from
Jun 14, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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