php-heroku-docker-applyer
Enable your PHP project to deploy to Heroku via Container Registry., (*1)
Installation
$ composer require --dev ttskch/php-heroku-docker-applyer:@dev
$ bin/php-heroku-docker-applyer <appname> # your Heroku app name
After this, following files are hard copied into your project. This library is just for copying files so you can composer-remove this library after this step., (*2)
.
โโโ .circleci
โย ย โโโ config.yml
โโโ .travis.yml
โโโ Dockerfile
Now you can deploy your project to Heroku by heroku container:login && heroku container:push web
., (*3)
Deployment via CircleCI or Travis CI
You can also deploy via CircleCI or Travis CI. For this, add following two environment variables to your CI platform., (*4)
var |
value |
DOCKER_USERNAME |
your Heroku email address |
DOCKER_PASSWORD |
your Heroku API key |
See also Heroku document., (*5)
That's it
Now you can deploy your project to Heroku via CircleCI or Travis CI. Enjoy!, (*6)