-
Notifications
You must be signed in to change notification settings - Fork 5
Deployment
#Introduction
#DB on MongoLab
Go to http://www.mongolab.com, register and create a database and a db user on AWS. Copy the URI in the form mongodb://<dbuser>:<dbpassword>@ds063178.mongolab.com:63178/expressjs to https://github.com/jlchereau/Phonegap.Express/blob/master/config/production.json.
You can use Robomongo to test your connection.
#API Server on Heroku
Go to http://www.heroku.com, register and create an application.
Create a file named Procfile at the root of the project with the following content:
web: node server.jsUpdate package.json with the nodeJS version to run against:
"engines": {
"node": "v0.10.x"
}Since the app has been created from the heroku administration console, configure Git:
git remote add heroku git@heroku.com:expressjs.git
git remote -v
heroku git@heroku.com:expressjs.git (fetch)
heroku git@heroku.com:expressjs.git (push)
origin https://github.com/jlchereau/Phonegap.Express.git (fetch)
origin https://github.com/jlchereau/Phonegap.Express.git (push)Sources:
- https://devcenter.heroku.com/articles/getting-started-with-nodejs
- http://www.letscodejavascript.com/v3/transcripts/lessons_learned/5
- http://niel.delarouviere.com/2012/03/the-really-absolute-beginners-guide-to-host-node-js-on-heroku/
#HTML 5 web app on Google Drive
#Phonegap web app
Copyright © 2013-2014 Memba Sarl. All rights reserved.