2023-11-24

Goal

To fix the damn DIMMiN App so that it is in line with the GitHub repo.

Notes

For some reason the code in the live DIMMiN App is not the same code that is being pushed to Heroku. I know this because the CSS files actually being rendered for the Taskmaster App are outdated. This might be because I worked from a Git Reset stage to revert to a time before the 500 Response Error.

The first thing I'll try is pushing to the Staging environment to see if the changes occur there. I checked to see what the current Git versions were for my different apps via the git remote command: git remote -v

Then I set up the Staging environment via:

heroku git:remote -a dimmin-staging -r staging

So that now (before pushing my code to the live site) I can push to a staging environment with

git push staging master

The build failed with an H10 Error Code, which means that the app crashed. This is likely because I didn't set my Environment Variables in my staging environment. I looked into my .env file and set the relevant environment variables using the following command:

heroku config:set VAR_NAME:VAR -a dimmin-staging

After setting the environment variables and refreshing the page, the staging environment was up and running! All it needed was a quick refresh. My superuser account was also already set up, and the Taskmaster App in the staging environment was working as expected.

I used

git branch

to find out that I was actually on the production branch.

Results

  • Updated the Staging environment with proper environment variables
  • Updated version of the Staging environment deploys Taskmaster App appropriately
  • Found out that the heroku git repo was up to date
  • Still not sure why it's not serving the correct CSS files...?

Next Time


Previous Note 2023-11-21 Next Note 2023-11-25