Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Rails Application

Nicholas Lee
Nicholas Lee
12,474 Points

Moved from home to college. What do I have to change for my ruby app?

I was working my home over the summer and had the entire environment setup on my laptop. I started working on my first application, the grocery list. At home I had it running on my local server. I could type in localhost:3000 and reach my app.

The problem now is I have moved back to college is nothing is working. I take it because I am on their servers it is preventing stuff from working... especially since only one thing can be on the localhost:3000 server.

My question is, what do I have to do to get my application and ruby environment back running? Do I have to completely reset up my entire ruby environment?

Im my terminal I could type bin/rails server and its responds with "-bash: bin/rails: No such file or directory"

Thank you.

Nicholas Lee
Nicholas Lee
12,474 Points

I cannot access my localhost:3000 it says... This webpage is not available

What does this mean?

Kang-Kyu Lee
Kang-Kyu Lee
49,730 Points

type $PATH and what it shows? Just in case

Kevin Lozandier
Kevin Lozandier
Pro Student 53,746 Points

This seems very interesting it's a problem related to your bash; did you do anything to it; when you go to your main bash dotfile, you should see a path pointing to your ruby installation (use ls -a in your home directory with your terminal and use your preferred text editor to view the contents of the file).

This is assuming you usually use bash regularly; many (including myself) use zsh. If you don't, make sure your system is in fact making your preferred shell other than bash the default shell.

Alternatively, if you have something like rbenv or rvm installed, make sure that the shell has access to an installation of Ruby you're expecting.

1 Answer

Kevin Lozandier
PRO
Kevin Lozandier
Pro Student 53,746 Points

Localhost is not dependent on a remote server. Unless you have things like AWS and Proc files pointing to remote servers, it shouldn't be an issue.

  • Did you run your server? In other words, did you run bundle exec rails s or install binstubs for your app to run through bin/rails s ?
  • If you're on a Mac: Did you update OSX? if you're on a Mac and upgraded to a completely new version like Yosemite—you have to reenable Apache to get your localhost running again.