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

grunt forever:restart is not working #20

Closed
alexserver opened this issue Mar 24, 2014 · 6 comments
Closed

grunt forever:restart is not working #20

alexserver opened this issue Mar 24, 2014 · 6 comments

Comments

@alexserver
Copy link

I'm working with grunt-contrib-watch and grunt-forever together, so if any file changes, I order forever to restart via : forever:

:restart. This is apparently working, but when I refresh the browser updates are not being shown, so I suppose there is a bug within grunt-forever and forever itself.
this is my grunt config:
forever: {
server: {
options: {
index: 'app.js',
logDir: 'logs/'
}
}
},
watch: {
web: {
files: ['examples/*js'],
tasks: ['browserify', 'forever:server:restart']
},
}

@avetisk
Copy link

avetisk commented Jun 15, 2014

+1

@pmaoui
Copy link

pmaoui commented Jul 10, 2014

+1 no workaround for now...

@gurdotan
Copy link

Not working for me either. forever list shows the same process ID and uptime before and after the restart

@dahjelle
Copy link

+1

In the meantime, I think I found a rough workaround with grunt-shell. I added the following to my Gruntfile:

shell: {
    start: {
        command: 'forever start --watch index.js'
    },
    stop: {
        command: 'forever stop index.js'
    }
}

and then made sure the shell:start task would run whenever I did a watch. Granted, this completely sidesteps grunt-forever, but it seems to be working in my 15 seconds of testing so far. ;-)

@bustardcelly
Copy link
Owner

Should be fixed in v0.4.6 with this commit 100b7d8

@pmaoui
Copy link

pmaoui commented Jul 18, 2015

This issue is still not resolved in the v0.4.7 for me unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants