Ruby on rails server not starting

Hi, when I try to run rails server, it just exits and displays the following message:

C:\rails_project\first_app>rails s
=> Booting WEBrick
=> Rails 4.1.0 application starting in development on http0 0 0 0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0 0 0 0). Consider using 127.0
.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:1
99:in `rescue in create_default_data_source': No timezone data source could be f
ound. To resolve this, either install TZInfo::Data (e.g. by running `gem install
 tzinfo-data`) or specify a zoneinfo directory using `TZInfo::DataSource.set(:zo
neinfo, zoneinfo_path)`. (TZInfo::DataSourceNotFound)

Can someone tell me what I don't see?

+4
source share
3 answers

I do not know if you are still having this problem, I struggled with the same problem until after a couple of weeks I finally resolved it. this is a problem with x64 machines.

just go to your gemfile and search gem 'tzinfo-data'

then in the array add this :x64_mingw

It should look like this:

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

then save, upgrade the package, and then install the package, and fortunately your rails server will start.

+7
source

It looks like you need:

gem install tzinfo

tzinfo 1.1.0, .

, :

gem install tzinfo-data

Gemfile:

gem 'tzinfo-data', '1.2014.5'
+2

The FYI error you get is probably related to use config.time_zonein your application. The error suggests that to interpret the correct time zone, you must use the dependencytzinfo

+1
source

Source: https://habr.com/ru/post/1536248/


All Articles