mean-on-openshift
mean-on-openshift copied to clipboard
Use grunt to start server locally
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.
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
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!
I had the same issue, and agree with bruggles8293.
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..
For me, I gave up mean-io at this stage, and turned to IONIC platform:
- I am just using the cloud database and
- client platform to fulfill my goal.
It works!
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...;)
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?