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

Ruby

Rails Apps not working

For some reason my rails apps that I've been building along with the instructors wont work outside of the treehouse VM. I can't figure out why this is. Is this because the VM is a development environment? Or am I missing something.

3 Answers

David Moore
David Moore
13,916 Points

You will need a similar environment wherever you plan to run the app, be that local development or deploying for public use. If you are trying to run locally without having ruby and rails properly installed, it is not going to work.

If you feel you do have you local environment properly configured, post the exact error message you get and we can try to offer additional information.

Dan Mirda
Dan Mirda
3,992 Points

You stated that you've been using the VM but do you have rails installed locally on your machine?

I don't use the VM but I would think that if you had the project folder on your hard disk and you had rails properly installed then you could just run "rails server" or (bin/rails server) and it would work. I could be wrong though.

Yeah, you would think it would be as simple as just doing a 'rails server' but it just quits instantly.

You both were right, I needed to reinstall rails locally. Everything works now.

Dan Mirda
Dan Mirda
3,992 Points

Glad everything works!