mean-on-openshift icon indicating copy to clipboard operation
mean-on-openshift copied to clipboard

Use grunt to start server locally

Open jbltx opened this issue 10 years ago • 7 comments

Hi, I'm looking for a way to use grunt to start the server like mentioned in the documentation :

$ grunt

Unfortunately I have this.

grunt-cli: The grunt command line interface. (v0.1.13)

Fatal error: Unable to find local grunt.

So I checked the package.json file and I didn't see grunt-cli in dependencies... but just in script.

"start": "node node_modules/grunt-cli/bin/grunt",
"test": "node node_modules/grunt-cli/bin/grunt test",

What I have to do ? If I install locally grunt-cli I always have the error. If I install grunt too, I have an other error...

Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'load-grunt-tasks'

Did I miss something ?

Thank you.

jbltx avatar Sep 28 '14 20:09 jbltx

this version is tailored to run on openshift, also works with free openshift account to run and develop locally refer to https://github.com/linnovate/mean

shai-weinstein avatar Dec 09 '14 09:12 shai-weinstein

New to the MEAN stack and most of this stuff and have been struggling getting this to work the past couple of days. Just noticed this Issue - glad I found it. Thanks so much for putting this together. For newbies like me, it might be nice to put a disclaimer in the Readme that this version will not work locally, and point to your other version. Again, thanks!

bruggles8293 avatar Dec 14 '14 20:12 bruggles8293

I had the same issue, and agree with bruggles8293.

johnking avatar Feb 24 '15 20:02 johnking

But if can't run it locally how am I suppose to develop on it? There is no point of having mean-on-openshift if you can't develop on it..

rickbrunstedt avatar Apr 29 '15 06:04 rickbrunstedt

For me, I gave up mean-io at this stage, and turned to IONIC platform:

  1. I am just using the cloud database and
  2. client platform to fulfill my goal.

It works!

johnking avatar Apr 29 '15 12:04 johnking

Hi, I juste change a few things in my config/env/development.js : db: ............MONGO_OPENSHIFT_URL || 'mongodb://localhost:27017/mydatabase-dev', port: process.env.OPENSHIFT_NODEJS_PORT || '3001', hostname: process.env.OPENSHIFT_NODEJS_IP || 'localhost',

grunt doesn't work but i can start my app locally with "node server"

good luck...;)

lleoooell avatar May 12 '15 14:05 lleoooell

Already tried @lleoooell work around. Still struggling to make grunt to work with this.

Any suggestions on deploying the original meanjs repo https://github.com/linnovate/mean on openshift?

vino4all avatar Apr 27 '16 13:04 vino4all