Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
MaryAnn Eleanya8,626 Points
I keep receiving the following messages every time I try to log on to localhost:4567 using Sinatra.
This site can’t be reached localhost refused to connect. Search Google for localhost 4567 ERR_CONNECTION_REFUSED
are you trying to navigate to localhost in a browser, or clicking the eyeball in the top right corner of the workspaces screen? from what I remember, workspaces doesn't output ruby to your machine to preview through workspaces, so you have to use that eyeball.
Jay McGavrenTreehouse Teacher
Hi, MaryAnn Eleanya ,
Because your pasted shell prompt includes
treehouse:~/workspace, I can see that you have written your code in Workspaces. But
http://localhost:4567 is a URL that you will only want to use if you are running a Sinatra app using a Ruby interpreter that you installed on your personal computer, not Workspaces.
The "Your First App" video includes directions both for running a Sinatra app on your personal computer, and for running it within Workspaces. It's important not to confuse the two. The Workspaces directions begin at 5:03 in the video. Follow those, and you should be able to connect.