-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File modification time are changed after application is copied to /app #386
Comments
Do you mean here? If so, does Also, I'm not really sure as to what |
I'm not so sure, Maybe it is here? herokuish/include/buildpack.bash Line 152 in 591fb59
But I can confirm that the modified time have already been changed in |
We could try |
It looks like |
The So could we keep the original modified time for our applications during building? Thanks. |
Thanks for the explanation. Is this verified to not be the case - the collectstatic affecting old assets - on Heroku? Or do you have the same issue with your app? If you can validate that on Heroku (please gist the output) that would be helpful. I'd be happy to take a PR if we can verify the above. |
This is verified to not be the case on heroku. Here is the gist. I deployed same application both in heroku and in dokku. https://gist.github.com/jxltom/2896f8f3b7b024a07caad5bd06c7a888 Note that in dokku, https://gist.github.com/jxltom/2896f8f3b7b024a07caad5bd06c7a888#file-deploy-by-dokku-L219, all 579 static files copied by |
Pull requests welcome, though I wonder if a cp vs a mv has any impact on the build time. |
Currently after coping application to
/app
during building in herokuish, original file modification time are all lost and time for coping will be used.This may cause issue when running some commands in custom buildpack. Such as in default python buildpack,
collectstatic
command will be run and this command should collect static files which modificaiton time are older than existed ones.But since original file modification time are lost, this command will collect all static files no matter they have been collected before or not.
Can we keep original file modification time during buidling, such as using
cp -p
?The text was updated successfully, but these errors were encountered: