Closed jollyjerr closed 3 years ago
Hey, @jacobvenable I am going to make one more change to this before it should be merged. Right now we can't run the full test suite locally because cypress does not know how to work without being on the CI server - so I'm going to get that working and then this should be good to go ☺️ !
@jacobvenable Okay now I think this is ready to go! ☺️
Get it boys I'm so proud of uuu
Just thought I'd add that I tested this branch and it worked locally on my ubuntu environment. I was still getting those redis errors: [server] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 [server] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
I was able to click each of the apps and load the data within.
Just thought I'd add that I tested this branch and it worked locally on my ubuntu environment. I was still getting those redis errors: [server] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 [server] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)
I was able to click each of the apps and load the data within.
@cjlynch278 I'm glad it booted up for you! You got those redis errors because your .env
was not up to date with what this branch needs. I might add a little logging to warn that you need to delete your .env
files.. or perhaps I'll think of another solution.... hmmm I'll keep you posted!
Edit:
I added a yarn reset
script that totally cleans up your local environment so you can start from scratch if something obscure like this is giving you trouble!
@jacobvenable
This PR closes #460 and closes #441 (Except for the circular dependencies mentioned in #441 - I think we should make an additional ticket for those)
What does this PR do?
This PR makes many enhancements targeted at improving the developer experience of upswyng. Highlights:
yarn start:local
. This new script installs dependencies, builds local packages when needed, sets up.env
files when needed, sets up a local database (with seeds) and redis instance when needed, and starts the server and web packages in development mode. Obviously, developers do not have to use this script, but it abstracts nearly the entire setup process for new engineers that just want to see the thing build and get started.yarn reset
command as an escape hatch that totally resets someone's local environment if things are just not working out.How does this PR make you feel? :link: