Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
No source of timezone data could be found. (TZInfo::DataSourceNotFound) #8
With RailsInstaller 3.1.0 (Ruby 2.1) on Windows 2008 Server (32bit) I can't start my rails server because of the following error:
In my Gemfile I am using the following entry for tzinfo-data:
Note here that my server does not have any connection to outside that's why I specified the path in the Gemfile, where I have downloaded and stored the following gem: tzinfo-data-1.2016.1.gem
The error means that TZInfo cannot locate
Have you unpacked the tzinfo-data gem? The
You can unpack the gem by running:
You'll then need to change the
Alternatively, you could just install the gem from your downloaded file by running:
and then remove the
@philr Thanks for the pointers, I have installed the gem as you recommended at it is located in
How can I specify the tzinfo/data load path in Ruby? And in which config file would that be?
Have you run
Bundler will take care of adding the gems you specify to the Ruby load path.
You might like to look at the section on Deploying Your Application in the Bundler documentation, which covers a process for deploying to a machine that doesn't have Internet access.