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>
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>
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>
<code>git <span>push</span> heroku master</code>
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.