Okay, so I’ve finally got the time to dive deep into https://www.railstutorial.org/book/, and I’m already slightly annoyed or confused… (section 1.5.1)
So most of the time the author is really good about telling you what directory you need to be in to run a command, but then he just went blank. So do I run the heroku create inside the hello_app/ or do I run it within workspaces/?
I’m assuming hello_app, but only because that is the actual application. That also assumes, I’d run this command for any future application too, but since i have no idea what I’m doing, I’m doubting myself.
Anyone know if that is indeed the appropriate place to run the heroku create command?
I’m not sure which comes first - git repository create or heroku create. I think git comes first.
I’ve been working through that book for a while now.
I’m about 99% sure it’s within the hello_app. I’ve done it like 3-4 times but I just restarted it again for like the 5th time yesterday and I’m JUST below the part about heroku.
So it ends up, I think I have to destroy my workspace
As I setup a blank repo for this on github first and then cloned it in c9, then the book had me create a new folder and wanted that folder to be the root of git, which it isn’t and that is what is making heroku refusing to run properly.
If you are using C9, you don’t need to create a folder called workspaces. ( https://www.railstutorial.org/book/beginning#sec-the_hello_application ) After you provision the workspace in C9, just create a new Rails app and follow the instructions and ignore the bit about creating a workspaces folder. You only need to do that if you are developing on your local machine.
As far as the heroku commands, I think that you’ll want to run those in the root of your app. In this case it would be the hello_app folder.
Also, post any errors you’re receiving when you run heroku commands and we’ll see if we can figure this out.
Well, I did and didn’t. Primarily because I knew I wanted to put my code in github so I could work it outside of c9 should I want to.
Once I realized heroku required the app to be the root, I saw the error of my ways and created the workspace in c9 first, and then added github as a remote to my apps afterwards. That allowed me to accomplish my goal of making sure I can get to my code outside of c9.
I’ve now completed Chapter 2 successfully. My goal is to tackle 3 and 4 later tonight
Just finished Chapter 2 as well again. I’m going to pick it up again tomorrow as well. Perhaps we could consult each other if we get stuck on a particular section. Have a second set of eyes/brain to pick up on stuff.