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

Trouble Executing Server Start Command - Windows

Currently I am working on setting up Ruby on Rails for Windows. I have followed all the steps, which have been working well up to this point. When I try to use the command "bundle exec rails server", it gives me a different message than the man on the video got. Instead of going right to the notification saying it is working, it first says "DL is deprecated, please use Fiddle". Then it proceeds to say it started development. For some reason once the development is is started, it says something about not being able to find the timezone, then it prints a bunch of paths. I have no idea what's going on. Just to see if it works I've tried typing http://localhost:3000/ into my browser. However, it says that it is unable to access the network. The only problem is I have great internet right now. I have been trying to get the Ruby development started by running the commands inside this directory: "C:\Users\Joseph\Documents\testapp". If you anyone could let me know what I am doing wrong that would be great.

1 Answer

Stone Preston
Stone Preston
42,016 Points

its most likely an issue with your tzinfo and tzinfo-data gems. open your gemfile, find the lines where it says

gem 'tzinfo', platforms: [:mingw, :mswin]
gem 'tzinfo-data', platforms: [:mingw, :mswin]

change it so that it reads

gem 'tzinfo', platforms: [:mingw, :mswin, :x64_mingw]
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

this adds support for 64bit versions of windows, which you are probably using.

if you did not find those lines at all, go ahead and add the lines above to your gem file. so just paste the following in your gemfile

gem 'tzinfo', platforms: [:mingw, :mswin, :x64_mingw]
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

after that run the following command in terminal after navigating to your project file

bundle install

after that try starting the server again