Heroku is a cloud platform that provides rapid deployment services. Support Node,ruby,java,php,python,go Multi-lingual, experience today, simply not too cool. Here's a quick introduction.
First, or you want to register an account: Https://signup.heroku.com/login
Do not know why, here 163 mailbox can not pass, QQ May. Then select Language node. js.
After successful registration, activate the mailbox and fill in the password.
1. Create an app
Login to the panel to create an app
Name is optional
2. Connect to GitHub
Once the creation is successful, go to the app's deployment page. Three deployment methods are available, Heroku Git,github and Dropbox.
default is Herogit mode, here we choose GitHub mode. GitHub authorizes you to query your project below, select Getting-mean
If there is no Git project for node, fork over to play. https://github.com/stoneniqiu/getting-MEAN/branches/stale
3. Publish
After a successful connection, you can select the branch that is automatically deployed and deployed.
Select Master here, the following interface appears after successful deployment, click View to access. The
Page opens as follows, the domain name is also very regular, is not great.
If you want to delete the app, in the Settings column. The free space is 300M. Summary: This article is just a simple introduction, not counting as long as three steps can complete a node project deployment, relative to the use of virtual machine or cloud, Heroku the code hosting and deployment together, and can deploy different branches, this is very convenient. FTP-Passing code and deploying it remotely on the cloud are tedious. Heroku the experience of this way value. Official website: https://www.heroku.com/Introduction: Https://devcenter.heroku.com/articles/how-heroku-works
Three-step deployment of the node app to Heroku