Deploy php to heroku

WBOY
Release: 2016-07-28 08:28:12
Original
1257 people have browsed it

1. Register a heroku account first
2. First install the heroku toolbelt tool https://toolbelt.heroku.com/debian

<code>wget -O- https://toolbelt<span>.heroku</span><span>.com</span>/install-ubuntu<span>.sh</span> | sh</code>
Copy after login

heroku login
Enter the registered account email and password
Enter the directory you want to upload

<code><span>cd</span> /yourAPP
git init 
git add .
git commit -m <span>"first commit"</span></code>
Copy after login

Create your app on heroku

<code>heroku <span><span>create</span> (会生成默认的目录)
heroku <span>create</span> --stack cedar yourApp (heroku <span>create</span> --stack cedar 只对php有效)</span></code>
Copy after login
<code>git <span>push</span> heroku master</code>
Copy after login

It’s ok

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the deployment of PHP to Heroku, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template