Open romfret opened 8 years ago
We don't really support such old Node versions. Please try upgrading. More info can be found in the openshift subgenerator docs.
Unless you have some very specific use-case I would also really recommend upgrading MongoDB to 3.0 or 3.2 to use the storage engine wired tiger (default in 3.2).
Solution is :
rhc set-env NODE_ENV=production --app myapp
@romfret do we need to add anything to the doc? If so, please make a PR :]
@Koslun I am using Openshift but it is stuck in the mongodb version 2.4. I have been watching to update the version to 3.X, but the only way I have found is this custom cartridge: icflorescu/openshift-cartridge-mongodb but I am not sure to use it
Some advise about the way to update MongoDB in openshift to version 3.2?
Thanks
@aabm00 Sorry, no experience with openshift so have no advice on how to setup openshift. Can only say that I would consider it time well spent to get node 4.X.X and MongoDB 3.X if you are looking to speed up your server or database respectively. While you might also need older versions of libraries to actually get your stack to work.
@Koslun Thanks for your answer. Probably you know another hostings providers that gives the posibility to work with node 4.X.X and MongoDB 3.X. I'll apreciate some advises.
Thanks
Well this generator also supports Heroku. Which does support both node 4.x.x and MongoDB 3.X.X. Can also recommend IBM Bluemix which is based on Cloudfoundry if you want to try to get that setup. Think either could work pretty well, especially if you don't regard yourself as an expert or think you have the time to either become one or get one. However not sure how well they stack up to each other in regards to pricing or features.
Personally use a slightly more advanced setup using VPS with a EC2 instance at AWS, which is similar to what digital ocean offers: https://www.digitalocean.com/pricing/. But though radically cheaper it requires a whole lot more effort to get to an equal footing of either Heroku or IBM Bluemix. Depends a lot on the demands you have on your setup. You can pretty much pay your way to most features with Heroku or IBM Bluemix but probably just as well setup them up locally and on an VPS.
I cannot deploy the app on Openshift. Here is the Openshift configuration : node.js 0.10 + MongoDB 2.4. Steps to reproduce are below. I cannot figure out what is wrong.
Parameters : Babel HTML Sass ngRoute Bootstrap : Yes UI Bootstrap : yes Mongoose Authentication bolierplate : Yes oAuth : Google / Facebook / Twitter Socket.io : Yes Gulp Mocha + Chai + Sinon Expect
Cloning new Openshift Git :
tempDir > git clone ssh://...
Copy and paste "node_modules", ".git" and ".openshift" in "myApp/dist" directory
Pushing new files to Openshift:
Logs of Openshift :
Restart the cartridge in Openshift Web console and check logs :
Pushing 2 times some new content (a simple space is added to package.json to detect a modification). Logs of last push :
Is there any great solution tu publish on Openshift please ?
Thank you.