Heroku 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,
Requirment:
Heroku account
Heroku toolbelt setup.
Steps:
open Gitshell you installed and start writing these codes.
we'll have to connect this php code to Heroku repository. Let's connect it, run the following commands:
Now Run the final command to deploy your php code to heroku.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-phpNow create example PHP file to the directory.
< ?php phpinfo(); ?>
git init git add . heroku create
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.
2 comments
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
keep getting big and informative post here. Thanks :)