Welcome to the Treehouse Community
Looking to learn something new?
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