You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.
time() and DirectoryIterator::getMTime are used to generate and update the timestamp used for the directory revision, however, this is not necessarily going to be consistent when deployed across multiple servers (e.g. a load balanced app).
I'm not sure the best way to address this, but it was the first thing I ran into.
At the moment, I seem to have it working by parsing a consistent env var that exists in our deploy, from which I can extract a timestamp: timkelty@0941726
The text was updated successfully, but these errors were encountered:
@timkelty Why do you run craft asset-bundler/publish on each server? You should run it once (in your deploy/build process) and then distribute the files to all servers.
@ostark good point -- the reason is because we're deploying docker images and currently we don't ship our images with composer as to keep our image size down.
Our deployment process builds the image, distributes it, and then runs composer install (and craft asset-bundler/publish).
time()
andDirectoryIterator::getMTime
are used to generate and update the timestamp used for the directory revision, however, this is not necessarily going to be consistent when deployed across multiple servers (e.g. a load balanced app).I'm not sure the best way to address this, but it was the first thing I ran into.
At the moment, I seem to have it working by parsing a consistent env var that exists in our deploy, from which I can extract a timestamp: timkelty@0941726
The text was updated successfully, but these errors were encountered: