Skip to content
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

Precompiling assets taking a long time #25

Open
batpad opened this issue May 25, 2018 · 4 comments
Open

Precompiling assets taking a long time #25

batpad opened this issue May 25, 2018 · 4 comments

Comments

@batpad
Copy link
Member

batpad commented May 25, 2018

Creating this issue to discuss and figure out a solution.

Currently, this is pretty bad: when doing a fresh build, this adds about 20 minutes to the build time and the precompile happens again at run-time of the container: https://github.com/developmentseed/osm-seed/blob/master/openstreetmap-website/start.sh#L4

We do need to fix this. Not 100% sure of the best approach.

@Rub21 will be great if you can document what you are trying and what errors you are facing.

@batpad
Copy link
Member Author

batpad commented May 28, 2018

This blog-post seems perhaps useful in speeding up the assets precompile: https://www.netguru.co/codestories/speed-up-assets-precompilation-time-in-a-rails-app - not sure if any of those things are helpful.

@Rub21
Copy link
Collaborator

Rub21 commented May 31, 2018

Hey guys, I have been trying to resolve this issues, I could not find to get a good result. this ruby + rails is hard!

  • I tested disabling many options, one by one and checked results according to the StackOverflow suggestions. But, not any luck, on most of the cases, the assets do not load properly

image

Looks like the precompile generates a chunkhash to process the files, and some keys as well, that would be why not found the assets which I replaced, or generated by other configurations.

Well the app is working despite the compilation is taking time, For now, I will stop here until someone who knows Ruby + rails could take eyes.

cc. @olafveerman

@batpad batpad added this to the Release 0.2.0 milestone Jun 25, 2018
@batpad
Copy link
Member Author

batpad commented Jan 12, 2022

This issue still exists - would be great to bump and see if we can find a solution - especially the precompile happening at run-time when we run the web container is a big hindrance to be able to have a good user experience setting up osm-seed for the first time.

cc @geohacker

@batpad
Copy link
Member Author

batpad commented Mar 27, 2024

@erictheise tagging you here in case you have any ideas! This really slows down both the docker build time as well as the startup time for our containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants