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 trialFernando Claussen
9,324 PointsCan't get rails server to work
When I run bundle exec rails server
I get this errors: http://imgur.com/QcYEWs9
I already did gem install tzinfo
but nothing happened..
Don't know what to do.. every time I try to access http://localhost:3000 I get a could not connect to server error.
3 Answers
Stone Preston
42,016 Pointsare you running 64 bit windows? try using this in your gemfile instead of what you have currently
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
then run
bundle update
bundle install
if you are using a 64 bit version of windows thats likely the solution. You just need to add that x64 windows platform to the platforms array.
Stone Preston
42,016 Pointsdid you add it to your gemfile after installing it? also install tzinfo-data and add it to the gemfile as well
gem install tzinfo-data
gem install tzinfo
then in your gemfile add
gem "tzinfo-data"
gem "tzinfo"
Fernando Claussen
9,324 Pointsfound that at the end of the gemfile:
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin]
also there is no config.rb, there is a config.ru though.
it's contents:
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Rails.application
Stone Preston
42,016 Pointshmm so you already had that in your gemfile correct? you did not have to add it yourself.
Fernando Claussen
9,324 PointsCorrect... it was already there
Fernando Claussen
9,324 PointsOops! I skipped the bundle update part... It worked !!!!!!!!!!!!!!!!
Fernando Claussen
9,324 PointsFernando Claussen
9,324 PointsYes I am.
also installed x64 ruby and x64 devkit
Did that and nothing changed.. same error.
Fernando Claussen
9,324 PointsFernando Claussen
9,324 PointsOops! I skipped the bundle update part... It worked !!!!!!!!!!!!!!!!