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 trialMichael Bardwell-Scott
Full Stack JavaScript Techdegree Student 6,653 PointsRails 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
13,916 PointsYou 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
3,992 PointsYou 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.
Michael Bardwell-Scott
Full Stack JavaScript Techdegree Student 6,653 PointsYeah, you would think it would be as simple as just doing a 'rails server' but it just quits instantly.
Michael Bardwell-Scott
Full Stack JavaScript Techdegree Student 6,653 PointsYou both were right, I needed to reinstall rails locally. Everything works now.
Dan Mirda
3,992 PointsGlad everything works!