2023-11-25

Goal

Continue to look into why the Taskmaster App can't load correct CSS.

Notes

The first thing I tried was removing fireproofing on my mobile to try and reset the Cache but that didn't work. It turns out this is a common issue encountered when attempting to Git Reset. I found this post that talked about the error.

Then I tried clearing the Heroku build cache:

heroku plugins:install heroku-repo
heroku repo:purge_cache -a dimmin
git push heroku master

But this also failed.

Nuke it

I decided to nuke the app and keep the PostgreSQL database which should give me the exact same result as what we have in the Staging environment. I may also have to reset my SSL Certificates but I've been meaning to take care of that for a while now so it's probably for the best.

First I backed up my postgres db: heroku pg:backups:capture -a dimmin

and downloaded it to my local heroku pg:backups:download -a dimmin

And saved it to my dimmin backups folder: C:\Users\Billy\Desktop\DIMMiN\app_bkup

Temporarily linked my database to my staging environment heroku addons:attach postgresql-rugged-57849 -a dimmin-staging

Unlinked the current database from my app: heroku addons:detach postgresql-rugged-57849 -a dimmin

Backup Databases with pgadmin

First I backed up my postgres db: heroku pg:backups:capture -a dimmin

and downloaded it to my local heroku pg:backups:download -a dimmin

And saved it to my dimmin backups folder: C:\Users\Billy\Desktop\DIMMiN\app_bkup\20231125.dump

Then created a new database using pgadmin:

and restored pg_restore -h "localhost" -p "5432" -U "postgres" -d "20231125" -v "C:\Users\Billy\Desktop\DIMMiN\app_bkup\20231125.dump"

I might be able to fix one of my Issues Pending here. I noticed that the fonts are explicitly set in the HTML of the body via Span tags. I ended up removing the span tags and now all of the posts on my website finally look like they belong together! I made another backup of this version of my website and it looks much better. This was a useful shortcut I could apply thanks to the CKeditor malfunction!

Results

  • Fixed the formatting / styling issues on my blog posts
  • I think I need to nuke my app

Next Time

  • Back up current version of the database and make sure it is accessible via pgadmin.
  • Nuke app

Previous Note 2023-11-24 Next Note 2023-11-27