ttskch / php-heroku-docker-applyer
Enable your PHP project to deploy to Heroku via Container Registry.
dev-master
2018-02-21 18:39 UTC
This package is not auto-updated.
Last update: 2025-03-02 07:58:49 UTC
README
Enable your PHP project to deploy to Heroku via Container Registry.
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.
.
├── .circleci
│ └── config.yml
├── .travis.yml
└── Dockerfile
Now you can deploy your project to Heroku by heroku container:login && heroku container:push web
.
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.
var | value |
---|---|
DOCKER_USERNAME |
your Heroku email address |
DOCKER_PASSWORD |
your Heroku API key |
See also Heroku document.
That's it
Now you can deploy your project to Heroku via CircleCI or Travis CI. Enjoy!