Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
When i open terminal, how do i access my "Treebook" directory so i could see what ive done on localhost:3000
if i shut off my computer and open it again, i have to open terminal and do some basic coding in order to view everything from my "social network" ?
Ahhhh I got you now!
You'll need to use the
cd command to get to the particular directory.
In my example, I would have to type like this:
And if you're on a Mac, a super secret trick that is not-in-the-spirit-of-using-the-command-line-but-will-get-the-job-done: you can just command-drag the folder to Terminal instead of having to cd into the directory's path.
Now...if you're not sure where your project folder is, you're going to just need to find it.
Hope this works!
If I understand your question correctly, you'll need to run the command
rails s (or the longer version,
rails server ) from the directory where you saved your project.
Hope this helps!
yeah i knew that. i just dont know how to do it from terminal. i just type in rails server but localhost is unavailable...i know i got to do something with the directory but i dont remember how to
lol how do you access your specific directory first. cause when i open it its just my name. but when i was working it was my name and "treebook" as well...now when i open it its not there no more, i know i gotta command it to bring it back, but i dont remember how.
OH YAHHHHHH!!! LOL Thanks !!
than i type in "rails server" to get it connected to localhost:3000, right?
got ya. thanks