Skip to content

PHP buildpack for Heroku with support for running Laravel artisan commands.

License

Notifications You must be signed in to change notification settings

lifekent/heroku-buildpack-laravel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku buildpack: Laravel

php

Forked official Heroku buildpack for PHP applications with added support for running Laravel artisan commands.

Usage

You'll need to use at least an empty composer.json in your application.

echo '{}' > composer.json
git add composer.json
git commit -m "add composer.json for PHP app detection"

If you also have files from other frameworks or languages that could trigger another buildpack to detect your application as one of its own, e.g. a package.json which might cause your code to be detected as a Node.js application even if it is a PHP application, then you need to manually set your application to use this buildpack:

heroku buildpacks:set https://github.com/lifekent/heroku-buildpack-laravel.git

Please refer to Dev Center for further usage instructions.

To run post deploy commands set config variable

heroku config:set DEPLOY_ARTISAN_TASKS=migrate --force

Use "--force" parameter if you running production environment, so then laravel won't prompt you if you are really want to run migrations and won't interrupt the deploy.

Running multiple artisan commands, f.e:

heroku config:set DEPLOY_ARTISAN_TASKS=migrate --force && php artisan route:cache

About

PHP buildpack for Heroku with support for running Laravel artisan commands.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.0%
  • PHP 6.0%