The package.json is important for publish an app on Bluemix
Here is a sample of a package.json, you should have something like that but with differents dependencies.
When you install a package with npm use "--save"
ex: "npm install stripe --save" automatically save the dependency in the package.json
{
"name": "myApp",
"version": "0.0.2",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"start": "node app.js"
},
"dependencies": {
"stripe": "~2.5.3",
"cors": "~2.3.1",
"express": "~4.2.0",
"body-parser": "~1.2.0",
"email-templates": "~0.1.8",
"nodemailer": "~0.6.5",
"moment": "~2.6.0"
}
}
the command following just upload you app on bluemix:
cf push myApp --no-manifest --no-start -c "node app.js"the command following read you package.json, install al the dependencies, and then start your App, so if you forget one you will not be able to start the app:
cf start myApp
I appreciate everything you have added to my knowledge base. Admiring the time and effort you put into your blog and detailed information on Angular.js, Node.js, and Bluemix
RépondreSupprimer
RépondreSupprimerThanks for sharing the good information and post more information.Talent flames company is one of the best training and placement company in Hyderabad. Providing training on Technologies like Java,Sql,Oracle,..,etc with 100% Placement Assistance. Now Interviews going on if you want to attend just visit our website and drop your resume. for more information visit us http://talentflames.com/
training and placement company in Hyderabad
RépondreSupprimerThank you for giving the information and it is useful for me. training with placement company in Hyderabad
Today Telugu news updates provide us the information of breaking news and live updates. we get live news, political, education, technology, etc. Today Telugu news gives the best news updates. It also keeps its readers informed about the latest happenings in the world with instant updates.
RépondreSupprimer