Commit Graph

253 Commits

Author SHA1 Message Date
Emi Matchu 06da8b0924 Add a cute Ghost Acara to the 404 page
Dice made me do this, please forward all design feedback accordingly.
Thank you!
2024-04-20 21:31:27 -07:00
Emi Matchu bc8d265672 Add handlers for requests that were stopped during the reboot process
According to our GlitchTip error tracker, every time we deploy, a
couple instances of `Async::Stop` and `Async::Container::Terminate`
come in, presumably because:

1. systemd sends a STOP signal to the `falcon host` process.
2. `falcon host` gives the in-progress requests some time to finish up
3. Sometimes some requests take too long, and so something happens.
   (either a timer in Falcon or a KILL signal from systemd, not sure!)
   that leads the ongoing requests to finally be terminated by raising
   an `Async::Stop` or `Async::Container::Terminate`. (I'm not sure
   when each happens, and maybe they happen at different points in the
   process? Maybe one happens for the actual long-running ones, vs the
   other happens if more requests come in during the meantime but get
   caught in the spin-down process?)
4. Rails bubbles up the errors, our Sentry library notices them and
   sends them to GlitchTip, the user presumably receives the generic
   500 error, and the app can finally close down gracefully.

It's hard for me to validate that this is *exactly* what's happening
here or that my mitigation makes sense, but my logic here is basically,
if these exceptions are bubbling up as "uncaught exceptions" and
spamming up our error log, then the best solution would be to catch
them!

So in this change, we add an error handler for these two error classes,
which hopefully will 1) give users a better experience when this
happens, and 2) no longer send these errors to our logging 🤞️

That strange phenomenon where the best way to get a noisy bug out of
your logs is to fix it lmao
2024-02-28 13:50:13 -08:00
Emi Matchu ead0003397 Add custom 502 error page, for when the app goes down but nginx is up 2024-02-19 13:19:31 -08:00
Emi Matchu a6daef636c Extract error-grundo.png into an image file
Initially I put this all in the same thing cuz I wasn't sure I could
count on our nginx config to actually serve asset requests correctly…
I've figured it out now!
2024-02-19 11:19:28 -08:00
Emi Matchu 974aaa48ff Add maintenance.html page 2024-02-19 09:45:45 -08:00
Emi Matchu 5f3ce1210a Stop saving local copies of SWFs
I think we used this for both conversion to image, and also for CORS stuff when rendering Flash-based previews… let's trash it, I don't want to be growing our hard drive with files I don't think we use anymore!

If I'm wrong and it turns out we do use them for something, then like. hey I'm sure we'll find out soon enough, and it's very recoverable operation.
2023-10-23 19:05:10 -07:00
Emi Matchu de245f96f3 Delete some unused public/assets files
Just cleaning up a bit! I'm sure there's more to remove, these were just some clear candidates: old wardrobe code, and stuff in `public` that I just fully don't recognize and don't think is doing anything? (We'll find out if something crashes though lol!)
2023-10-23 19:05:09 -07:00
Emi Matchu ed0e9ec9fd Move gitignore out of the assets folders
Just makes it a bit harder to clean up, when you have to clean around the .gitignore file!
2023-10-23 19:05:09 -07:00
Emi Matchu 15002d19db Remove compass-rails
I wasn't sure what we were actually using it for, turns out it was mostly polyfills for CSS features that are very standard now!

I didn't audit these changes very carefully tbqh because they seemed pretty simple? Fingers crossed!
2023-10-23 19:05:09 -07:00
Emi Matchu 1e9603a92f Add public/dev-assets to .gitignore
I was finally using `assets:precompile` to test something in development so!
2023-10-23 19:05:09 -07:00
Matchu fb123b6d64 ignore public/uploads 2015-07-27 13:24:58 -04:00
Emi Matchu 12a1c0f500 monocle favicon 2013-12-26 12:44:03 -05:00
Emi Matchu a9f4c14a96 update favicon 2013-06-21 18:39:03 -07:00
Emi Matchu 7d80c96bcd ignore public/assets 2013-05-06 21:28:45 -04:00
Emi Matchu 3c91f0cde0 import items to a specific list 2013-04-09 15:50:33 -05:00
Emi Matchu c7237d7d44 fix a bunch of precompiled-asset-missing errors 2013-03-05 22:26:14 -06:00
Emi Matchu cf5191d33c phew. rails 3.2.12, including some asset pipeline. still buggy. 2013-03-05 20:08:57 -06:00
Emi Matchu f547a75c40 ruby 2.0.0 compatibility... hopefully. 2013-02-25 01:14:45 -05:00
Emi Matchu 3d0b69e944 oops, outfits#edit items template was missing description 2013-02-17 10:43:09 -06:00
Emi Matchu 1c0b5c743e better handle new colors and species 2013-02-15 23:57:06 -06:00
Emi Matchu 15b939f946 align homepage forms, phew 2013-02-11 23:28:05 -06:00
Emi Matchu 7c57a3a207 use grayscale to better illustrate deactivated species on items#show 2013-02-06 13:35:10 -06:00
Emi Matchu 923335b8da localize blog posts 2013-02-06 10:59:25 -06:00
Emi Matchu 7f2ce2839b appearance dropdown - wow, that was easy 2013-01-31 19:46:34 -06:00
Emi Matchu 254a4fe89c preserve outfits#edit location hash when switching locales 2013-01-26 12:02:06 -06:00
Emi Matchu 52fee4f0c9 localize outfits#edit wear/unwear/closet/uncloset 2013-01-26 11:58:16 -06:00
Emi Matchu 8c348d4535 localize outfits#edit search helpers 2013-01-26 11:11:42 -06:00
Emi Matchu 0f49d3ed02 simple locale dropdown in layouts#application 2013-01-24 18:24:33 -06:00
Emi Matchu 3b1ffe71a9 i18n for will_paginate, including dynamically in outfits#edit 2013-01-24 18:23:21 -06:00
Emi Matchu 34e99bba72 i18n for outfits/new.js 2013-01-24 18:23:21 -06:00
Emi Matchu 8b15d31639 i18n for pet_query.js 2013-01-24 18:23:21 -06:00
Emi Matchu 3d8266951f i18n for outfits/edit.js item partials: no-data-yet and icons 2013-01-24 18:23:20 -06:00
Emi Matchu 629e5c68a9 i18n for outfits/edit.js userbar message and outfit save errors 2013-01-24 18:23:20 -06:00
Emi Matchu ec6c7b550d i18n for outfits/edit.js sharing urls 2013-01-24 18:23:20 -06:00
Emi Matchu 2b1cb2fe7f i18n for outfits#edit base template - dynamic content in outfits/edit.js still needs examined 2013-01-24 18:23:20 -06:00
Emi Matchu 8c9dda37d5 i18n for closet_hangers#index search bar autocomplete 2013-01-24 18:23:20 -06:00
Emi Matchu 30cdbface5 i18n for closet_hangers#petpage and items#_item (NC icon) 2013-01-24 18:23:19 -06:00
Emi Matchu 5498a739f2 i18n for pets#bulk 2013-01-24 18:23:19 -06:00
Emi Matchu ac0490dc1d i18n for items#show (including javascripts/items/show.js) 2013-01-24 18:23:19 -06:00
Emi Matchu b69793c008 i18n for contributions#index 2013-01-24 18:23:18 -06:00
Emi Matchu 132a49d30b i18n for outfits#new (and layouts#application), including caching 2013-01-24 18:23:18 -06:00
Emi Matchu 75be12fe2e update fonts to use google web font api properly 2013-01-23 00:31:15 -06:00
Emi Matchu 9701221035 wardrobe now considers item.species_support_ids when deciding compatibility
For example, the Meerca Maid Tray is a foreground item, so the SWF is marked
as compatible with all body types, but the item itself is clearly marked as
Meercas-only. items#show reflected this properly, but the swf_assets#index
call that the wardrobe uses ignored item.species_support_ids.

So, /bodies/:body_id/swf_assets.json?item_ids[]=... was deprecated in favor
of /pet_types/:pet_type_id/items/swf_assets.json?item_ids=[]..., which is
much like the former route but, before loading assets, also loads the pet
type and items, then filters the items by compatibility, then only loads
assets for the compatible items.
2013-01-02 23:15:32 -05:00
Emi Matchu 86b58a0a35 upgrade to rails 3.0.18 - only patch upgrades, no API changes 2013-01-02 22:44:24 -05:00
Emi Matchu 07f49307f1 a few tweaks to items#show contributors appearance 2012-10-24 22:16:01 -05:00
Emi Matchu f56b544963 brought-to-you-by on items#show lists contributors 2012-10-24 22:09:05 -05:00
Emi Matchu 9fcc1b244a bug fix: pet importer no longer chokes when two pets wear the same item 2012-10-01 13:22:17 -05:00
Emi Matchu 99669b8e4e cache homepage latest contribution 2012-08-09 22:59:35 -04:00
Emi Matchu 72237f225c modeling hub 2012-08-06 21:15:31 -04:00
Emi Matchu ca2dc56d43 Your Items is no longer "new", so remove all tags to that effect 2012-08-01 14:29:25 -04:00