Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design a better deploy system #99

Merged
merged 6 commits into from
May 2, 2022
Merged

Design a better deploy system #99

merged 6 commits into from
May 2, 2022

Conversation

jmg1138
Copy link
Member

@jmg1138 jmg1138 commented Apr 29, 2022

This is currently just an alpha project, so it only deploys to a testing/staging environment. Even so, the current deploy steps are not good. Design a better deployment script from GitHub Actions.

…ngle staging deploy script for now. Ran into trouble if GitHub Actions tried to deploy both at the same time. Will eventually have a better separated deploy scheme. In the api package.json scripts don't always run prettier and eslint before a build, just get rid of the old build directory.
@jmg1138 jmg1138 self-assigned this Apr 29, 2022
@jmg1138 jmg1138 added 🚀 Enhancement Enhancement Requests (aka New Feature Requests). 🧒 Complexity 2 - Less Less complex. 💥 Priority 4 - Immediate Priority is immediate. Highest priority. 🤫 Severity 1 - Mild Severity Level 1. Lowest severity. labels Apr 29, 2022
@jmg1138 jmg1138 added this to ⛙ Merging in 🚀 Enhancements via automation Apr 29, 2022
@codecov
Copy link

codecov bot commented Apr 29, 2022

Codecov Report

Merging #99 (6aa3381) into main (b211375) will decrease coverage by 0.14572%.
The diff coverage is 0.00000%.

❗ Current head 6aa3381 differs from pull request most recent head ee601ba. Consider uploading reports for the commit ee601ba to get more accurate results

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main         #99         +/-   ##
===================================================
- Coverage   23.00147%   22.85575%   -0.14573%     
===================================================
  Files             76          77          +1     
  Lines           2039        2052         +13     
  Branches         381         381                 
===================================================
  Hits             469         469                 
- Misses          1444        1457         +13     
  Partials         126         126                 
Impacted Files Coverage Δ
packages/web/src/wrappers/jwt.ts 0.00000% <0.00000%> (ø)
packages/web/src/wrappers/fetch.ts 0.00000% <0.00000%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba38afa...ee601ba. Read the comment docs.

…ange [explained here](https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-client-rendering-apis) so I made those required changes in the index.tsx file. Also added a little fun graffiti to the front-end that shows up in the browser console. Also slightly modified the graffiti in the back-end package.
…www.npmjs.com/package/react-helmet-async), due to [this issue](nfl/react-helmet#548). The async library requires a <HelmetProvider> encapsulation element, so I added that where I was already using the <Helmet> element.
…lly doing. Only difference now is that I don't stop the api process until later. Begins with stashing any local changes on the staging server (like the package-lock.json that is probably different) before doing the pull. Then the npm install. If all that has worked so far, then stop the api to create a fresh build before restarting it. After that, build the react web app too. Both would then be "deployed" to this alpha/hobby/staging server.
…ed the web package import paths to use relative local paths instead of based on the tsconfig root directory. I've been trying to find a nicer cleaner way to handle import paths in this project, but so far everything I try breaks something else that isn't simple to workaround. The relative paths might not be pretty, but they work, so for now I'm back to using them.
@jmg1138 jmg1138 merged commit 40184b6 into main May 2, 2022
🚀 Enhancements automation moved this from ⛙ Merging to ✔ Done May 2, 2022
@jmg1138 jmg1138 deleted the better-deploy branch May 2, 2022 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧒 Complexity 2 - Less Less complex. 🚀 Enhancement Enhancement Requests (aka New Feature Requests). 💥 Priority 4 - Immediate Priority is immediate. Highest priority. 🤫 Severity 1 - Mild Severity Level 1. Lowest severity.
Projects
🚀 Enhancements
  
✔ Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant