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

error while doing basic configuration #36

Open
rahul-desai3 opened this issue May 7, 2015 · 0 comments
Open

error while doing basic configuration #36

rahul-desai3 opened this issue May 7, 2015 · 0 comments

Comments

@rahul-desai3
Copy link

I am on CentOS and working on a node.js - angular.js project and I have setup node to keep running in background even when logged out from the terminal, using forever module.

I want to do the same for the frontend so it keeps running in the background. I am using Yoeman in the frontend and so far I have been launching the frontend using the command grunt serve.

I installed module grunt-forever but I am having issue configuring it.

After referring to the docs, I added:

  require('load-grunt-tasks')(grunt);

at the beginning of the module.exports block and the following config at the bottom of the module.exports code block:

  forever: {
    lorem-server: {
      options: {
        index: 'app/app.js',
        logDir: 'logs'
      }
    }
  }

When I did grunt test, I got:

root@mail [417 03:12:25 /projects/lorem/client]# grunt test

/projects/lorem/client/Gruntfile.js:481
    lorem-server: {
              ^
Loading "Gruntfile.js" tasks...ERROR
>> SyntaxError: Unexpected token :
Warning: Task "test" not found. Use --force to continue.

Aborted due to warnings.

I still went ahead and did grunt forever:lorem-server:start, but got the same error.

Here is my Gruntfile.js: https://gist.github.com/rahul-desai3/5c23629cc6ba1dc60e02

What am I doing wrong here? Can someone please point me in the right direction?

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

1 participant