marcoroth/hotwire.io

Some pages are crashing on the live site

Closed this issue · 4 comments

Yeah, sadly the state of git submodules on Heroku is not great. It's currently failing because the automatic deployment via GitHub doesn't initialize git submodules.

I'm not sure what the best way would be to incorporate the upstream documentation without having to actually copy it into the repo.

I guess the other option is that we fetch the documentation at runtime via HTTP requests and cache it in the app.

How about fetching them in the build step? Would that be an alternative? It would definitely be more performant.

Right, that's a good idea. We'd just need to make sure that you can also run and see the content locally while developing, so it should probably be something like a rake-task that spits out the generated files.

Yes. a Script that you could run from time to time that will output the files in the directory, and you manually commit to the repo.
Then they will be available as regular HTML files