Cache nginx debs
this will speed up deployment a bit
ping :)
Thanks for the PR, and apologies for the wait..
Is there a way to do the version check in a more automated fashion? i.e.:
- Mark when
apt-get updatewas last run as well as current version of nginx - If
apt-get updatewasn't run in the last$x(24h?), run it - Check if there's a newer version available (via
apt-cache?) and download new packages
It would allow nginx to be updated automatically and not get stuck behind me/someone updating this buildpack or someone waiting for the a newer buildstep to be published
yeah. I can look into that. I figured nginx isn't updated all that often, so it would be ok and worst case they could delete the cache directory on the box if they wanted latest.
Hm, on second thought I'm OK with that.
Could you change lines 5-7 to be independent of versions? Something like $CACHEDIR/nginx_*.deb (etc) could work
great idea. I'll make that change later today
Thanks!