-
Notifications
You must be signed in to change notification settings - Fork 527
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
GIthub workflows, Dockerfile, and Cargo.toml out of sync with blog. #75
Comments
Can you be more specific - what did you have to change? |
Oh shoot. I didn't actually mean to submit that yet! ha. I was just making a draft while I got it working again. I will update once I get it all running and can do a diff. |
Ahah no worries 😁 |
Somehow in my troubleshooting, I have really flubbed something up and can't get the tests to pass on Github. They work fine on my machine, but fail every time when I try to run it in CI. Everything was working 100% at the end of last month when the last chapter came out. Other than one DB migration at the beginning of Chapter 7.2 I hadn't changed anything when it started failing. I likely had something simple wrong, but got distracted by the dependency changes and broke it all. I am guessing my original problem was a bug with I have absolutely no idea why it works on my machine, but not in CI...but I'm out of patience to troubleshoot it anymore today. Feel free to ignore this issue and I'll come back to it when I figure out what's going on. |
Your issue, I believe, is due to this file https://github.com/cldershem/zero2prod/blob/master/.env.example being named |
The What I believe happened was that while troubleshooting I went back and copy and pasted this Dockerfile with a typo. That line should be I haven't actually gotten it to deploy completely yet, but now it's because I'm running into #71. |
It's building again. At this point I'm not sure there was actually any dependency problems when I started. I think there was likely a something simple on my end and when I when I copy and paste a few of the files from your buildI I ran into a few hiccups.
I will close this issue, but if anyone else should come along to find it here is a diff between chapters. I happened to make some minor, unrelated changes, but I think one can figure it out. |
I finally got around to finishing this chapter and ran into the same issue that started this thread when I went to deploy it to production. I spent half of my day yesterday figuring out what was causing the issue. I am now wondering if the 7.2 branch can actually be deployed exactly as is. During the Troubleshooting this was difficult for a few reasons. A few of these reasons were already on this thread bout dependency version mismatches and the like. After I couldn't get things to build for a few hours, I started copying and pasting your code directly and that led to a few other problems.
I'm not 100% sure where to go from here, but I thought I'd at least publish the findings from this chapter's headache. |
Thanks for the write-up - this might definitely turn out useful for others facing similar problems 🙇🏼 Unfortunately I don't think there is much I can do to improve the situation on my side.
The two scripts are identical as far as I can see 👀 |
I think I was referring to the version of I agree that there likely isn't much that you can do it. I think I just happened upon a domino path of failure and wanted to document it for anyone else that had a similar problem. I was trying to avoid the ole DenverCoder9 situation. |
I managed to reproduce the looping issue - just updated all branches with a fix! |
Oh, I'm so glad to hear I haven't gone completely mad! Thanks for the update. I think it's safe to close this issue and trust that anyone else with my luck will find it when searching. |
I've been following along with the blog posts pretty regularly and everything has been going pretty smoothly. However, the most recent one has led to a bunch of headaches to get everything running properly again. I shut down the App on DigitalOcean in between chapters to keep the cost down, but I can't get it to spin back up. While troubleshooting this problem I discovered that the Github Workflows, Dockerflie, and
Cargo.toml
dependencies have all been updated between chapters without any mention.I realize that this wouldn't happen if someone was reading a physical book straight through, but in the blog format, it is inevitable. Maybe at minimum there could be a quick note to the top of the chapter to check the dependencies first and follow the compiler for updating.
The text was updated successfully, but these errors were encountered: