Deploying PHP on Heroku - LabMazurokCom/Blockchain GitHub Wiki
- Install PHP: https://php-osx.liip.ch/
- Download composer: https://getcomposer.org/download/
- Make Composer accessible from terminal: https://getcomposer.org/doc/00-intro.md#globally
- Install Heroku console and check all the requirements: https://devcenter.heroku.com/articles/getting-started-with-php#set-up
- 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) - Login to Heroku:
heroku login
e-mail:
password:
- Preparing git:
git init
(if new applications is created) heroku create application_name
heroku git:remote -a application_name
- Deploy app to Heroku:
git add .
git commit -m "commit_commentary"
git push heroku master
- Open app in web-browser:
heroku open