Heroku Tutorial

Deploy PHP to Heroku in Two Minutes

Nabeel
June 22, 2014
2 Comments
Home
Heroku
Tutorial
Deploy PHP to Heroku in Two Minutes

Deploy PHP to Heroku in Two MinutesHeroku is a cloud-based platform-as-a-service which allows developers to set up, scale and control apps.

lets go to know hot Deploy PHP to Heroku in Two Minutes.







You need these 7 commands only,
mkdir heroku-php
cd heroku-php
git init
git add .
heroku create
git commit -m "Initial commit"
git push heroku master 

Requirment:
Heroku account
Heroku toolbelt setup.

Steps:
open Gitshell you installed and start writing these codes.
mkdir heroku-php
cd heroku-php
Now create example PHP file to the directory.
 < ?php
  phpinfo();
?>
we'll have to connect this php code to Heroku repository. Let's connect it, run the following commands:
git init
git add .
heroku create
Now Run the final command to deploy your php code to heroku.
git push heroku master

You are done!

To view your php app to heroku just run heroku open Which will open your php app to the browser.

Blog authors

2 comments

  1. Anonymous
    Anonymous
    June 24, 2014 at 10:00 AM
    Do you mind if I quote a few of your articles as long
    as I provide credit and sources back to your website?
    My blog site is in the very same area of interest as yours and my visitors would genuinely benefit from a lot of the information you present
    here. Please let me know if this ok with you.
    Many thanks!

    Review my web blog - gewora
    1. Nabeel
      Nabeel
      June 26, 2014 at 6:32 AM
      You can do it. but don't forget to link back and mention source.
      keep getting big and informative post here. Thanks :)