Created
February 22, 2019 14:28
-
-
Save skozz/0ac405c565b41bfa21fb93e32ab69ad4 to your computer and use it in GitHub Desktop.
[Solution Rails + Docker] TZInfo::DataSourceNotFound: tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add `gem 'tzinfo-data'` to the Gemfile. | |
- Add `tzdata` to the Dockerfile | |
``` | |
RUN apk update \ | |
&& apk add build-base \ | |
tzdata | |
``` | |
- Build `docker-compose build` or `docker-compose up --build` | |
- Enjoy the life |
This was a big help, thank you
man, you are a life-saver!! thank you so much!
Windows 10 solution?
Yeah. That's the solution. Thanks.
Windows 10 solution?
take a look at this https://stackoverflow.com/questions/23022258/tzinfodatasourcenotfound-error-starting-rails-v4-1-0-server-on-windows?noredirect=1&lq=1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!