I want to run a simple 'Hello World' PHP script to start understanding how Heroku functions in general. So I have created a git repository at Github with a simple 'Hello World' php script and an empty README file. Therefore the source code in the php file is:
<?php
echo 'Hello World';
?>
I applied step-by-step the instructions at Heroku:
- I downloaded the Heroku CLI
- entered
heroku login
and my credentials at the command line - had php, composer and git installed
- entered
git clone *my_git_repository_adress*
- entered
cd *my_git_repository_name*
- entered
heroku create
However, when I enter git push heroku master
at the command line I get the following error: App not compatible with buildpack: https://github.com/heroku/heroku-buildpack-php.git
.
Then when I try to set the buildpack by entering heroku buildpacks:set heroku/php
, I get the following error:
▸ Missing required flag:
▸ -a, --app APP app to run command against
▸ See more help with --help
What am I doing wrong?