your application, you need to add a file Procfile under this directory with a line of code:
web: node server.js
(Here, the web: node tells heroku that you want to deploy a node. js web application. The server. js below is the file name of the core program code on your server)
Okay. Now the deployment is ready.
First, you need to register a user on www.heroku.com. the user name is your email address. Then i
to set the corresponding environment variables on Heroku. The command is as follows:
xpleaf@leaf:~/Heroku_pro$herokuconfig:setMAIL_USERNAME="xpleaf"Settingconfigvarsandrestartingmy-heroku-app-cn...doneMAIL_USERNAME:xpleafxpleaf@leaf:~/Heroku_pro$herokuconfig:setMAIL_PASSWORD="***"Settingconfigvarsandrestartingmy-heroku
When creating a Python app with the official tutorial on Heroku, this deploy-the-app error is reported when uploading the code to the Heroku git repository:A search on the Internet, the relevant answer incredibly few, the first page only appeared an article (fortunately this
remote server, which is abbreviated as origin. (Hypothesis) You may have configured many remote servers.
$ Git remote-vOrigin git@heroku.com: Sample-Project.git)Origin git@heroku.com: Sample-Project.git (push)
3. Deploy your code
Use git push to deploy your code.
$ Git push origin masterInitializing repository, done.Counting objects: 11, done.Delta compression using up to 8 threads.Compressing objects: 100
Try Heroku, it's a bunker, here's how to implement deployment access for your application in a few simple steps:1, first https://dashboard.heroku.com/for account registration2. Push one of the latest Nodejs express applications on GitHub3, Login Heroku Enter:Choose GitHub deployment, tick "Automatic deploys", select Git branch and project, wait a moment
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 host
Recently I learned rails (reference material http://railstutorial-china.org/rails3/). When Heroku is deployed (git push heroku master), the terminal prompts: push rejected no cedar-supported app detected error. After studying for a long time, the original version library path problem caused heroku to fail to judge the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.