Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttskch/php-heroku-docker-applyer
Enable your PHP project to deploy to Heroku via Container Registry.
https://github.com/ttskch/php-heroku-docker-applyer
docker heroku heroku-container-registry php
Last synced: 21 days ago
JSON representation
Enable your PHP project to deploy to Heroku via Container Registry.
- Host: GitHub
- URL: https://github.com/ttskch/php-heroku-docker-applyer
- Owner: ttskch
- License: mit
- Created: 2018-02-14T23:52:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-21T18:39:11.000Z (almost 7 years ago)
- Last Synced: 2024-10-28T09:36:37.150Z (2 months ago)
- Topics: docker, heroku, heroku-container-registry, php
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-heroku-docker-applyer
Enable your PHP project to deploy to Heroku via [Container Registry](https://devcenter.heroku.com/articles/container-registry-and-runtime).
## Installation
```bash
$ composer require --dev ttskch/php-heroku-docker-applyer:@dev
$ bin/php-heroku-docker-applyer # 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.
```bash
.
├── .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](https://devcenter.heroku.com/articles/container-registry-and-runtime#using-a-ci-cd-platform).
## That's it
Now you can deploy your project to Heroku via CircleCI or Travis CI. Enjoy!