Skip to content

Enable your PHP project to deploy to Heroku via Container Registry.

License

Notifications You must be signed in to change notification settings

ttskch/php-heroku-docker-applyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-heroku-docker-applyer

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!

About

Enable your PHP project to deploy to Heroku via Container Registry.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages