Swop / heroku-buildpack-symfony2

A Heroku buildpack to compile Symfony2 apps
5 stars 2 forks source link

Add 'console cache:warmup' in boot script #3

Open Swop opened 11 years ago

stof commented 11 years ago

there is an issue here: Heroku expects the app to bind on $PORT within 60 seconds, otherwise it considers it as a failure (boot timeout). But the cache warmup can be longer than that (it is even the goal, to make the heavy cacheable work there instead of during a web request). I found a workaround by doing the warmup after launching nginx but it could cause some issues for the first request if it comes before the warmup is completed