Personally, I have never found a way to do those tasks with the procfile. For me, I just use a bash script that runs all of the post deployment function like heroku run php artisan config:cache. You can also do it like in this repo . https://github.com/jessedc/laravel-heroku-example/blob/master/app.json