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

The hook grunt is taking too long to load #3894

Closed
jihadwk opened this issue Nov 17, 2016 · 4 comments
Closed

The hook grunt is taking too long to load #3894

jihadwk opened this issue Nov 17, 2016 · 4 comments

Comments

@jihadwk
Copy link

jihadwk commented Nov 17, 2016

module.exports = function(grunt) {
grunt.registerTask('prod', [
'compileAssets',
'concat',
'uglify',
'cssmin',
'sails-linker:prodJs',
'sails-linker:prodStyles',
'sails-linker:devTpl',
'sails-linker:prodJsJade',
'sails-linker:prodStylesJade',
'sails-linker:devTplJade',

'watch'

]);
};
I just add 'watch' in tasks/register/prod.js ,but I get err "The hook grunt is taking too long to load" in production ,why ?help me?

@sailsbot
Copy link

Hi @jihadwk! It looks like you may have removed some required elements from the initial comment template, without which I can't verify that this post meets our contribution guidelines. To re-open this issue, please copy the template from here, paste it at the beginning of your initial comment, and follow the instructions in the text. Then post a new comment (e.g. "ok, fixed!") so that I know to go back and check.

Sorry to be a hassle, but following these instructions ensures that we can help you in the best way possible and keep the Sails project running smoothly.

If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact inquiries@treeline.io.

@Josebaseba
Copy link
Contributor

hey, add this line to the config/env/production.js file:

hookTimeout: 900000

@jihadwk
Copy link
Author

jihadwk commented Nov 18, 2016

it not work . i find a explain , in production ,watch is not work ,if you add ,grunt will never exit so

@sailsbot
Copy link

Hi @jihadwk! It looks like you may have removed some required elements from the initial comment template, without which I can't verify that this post meets our contribution guidelines. To re-open this issue, please copy the template from here, paste it at the beginning of your initial comment, and follow the instructions in the text. Then post a new comment (e.g. "ok, fixed!") so that I know to go back and check.

Sorry to be a hassle, but following these instructions ensures that we can help you in the best way possible and keep the Sails project running smoothly.

If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact inquiries@treeline.io.

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

No branches or pull requests

3 participants