create_card works in dev, not in prod
andrewljohnson opened this issue · comments
@nathancahill could you look into this and maybe LMK how you debug serverside issues like this now?
I don't see anything in JS console.
It looks like the custom cards get wiped when Django runs collectstatic
so it's probably best to commit the svgs in card-art-custom
to the repo.
Hmm, I guess I don't really object to checking these in. But...
-
I think this line will fail on a fresh install because the source and destination files will be the same: https://github.com/andrewljohnson/deckzap/blob/main/create_cards/migrations/0002_auto_20211113_0331.py#L27
-
It seems less clean than having the initial install pipeline start from the bundle I sourced from https://game-icons.net/
Should we tweak the migrations so this doesn't fail, or is there a straightforward way to avoid collectstatic wiping out the files? I guess I don't understand why collectstatic would kill them?
This is fixed with the svgs committed in the repo now.