Deploying PHP on Heroku - LabMazurokCom/Blockchain GitHub Wiki

  1. Install PHP: https://php-osx.liip.ch/
  2. Download composer: https://getcomposer.org/download/
  3. Make Composer accessible from terminal: https://getcomposer.org/doc/00-intro.md#globally
  4. Install Heroku console and check all the requirements: https://devcenter.heroku.com/articles/getting-started-with-php#set-up
  5. Clone the repository and add composer.json:
    git clone https://github.com/path_to_repository
    cd project_folder
    composer init
    (follow the instructions of Composer)
  6. Login to Heroku:
    heroku login
    e-mail:
    password:
  7. Preparing git:
    git init
    (if new applications is created) heroku create application_name
    heroku git:remote -a application_name
  8. Deploy app to Heroku:
    git add .
    git commit -m "commit_commentary"
    git push heroku master
  9. Open app in web-browser:
    heroku open
⚠️ **GitHub.com Fallback** ⚠️