diff --git a/.gitignore b/.gitignore index 89514d9..27a4306 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ public/system/users .project /coverage + diff --git a/Gemfile b/Gemfile index 2743505..b2d7199 100644 --- a/Gemfile +++ b/Gemfile @@ -83,3 +83,6 @@ gem 'delayed_job', '~> 4.0' gem 'delayed_job_active_record' gem 'httparty', '0.13.7' + +# windows support (linux timezone directory is used in the project) +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] \ No newline at end of file diff --git a/README.md b/README.md index 44ee213..e50d699 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,7 @@ Yes. We have to drink. But we also have to pay. This is the drinking part. 2. Run `bundle update` and `bundle install` 3. Migrate the db using `bundle exec rake db:migrate` 4. Start Tap by running `bundle exec rails s` + +## Windows installation + +[klik hier](README_WINDOWS.md) \ No newline at end of file diff --git a/README_WINDOWS.md b/README_WINDOWS.md new file mode 100644 index 0000000..d6e3533 --- /dev/null +++ b/README_WINDOWS.md @@ -0,0 +1,51 @@ +# Windows installation + +This project can't be run with the latest ruby version. With rbenv you can install multiple ruby versions on your pc. + +## Rbenv install + +This is a very simple install, just run the cmd bat script as administrator from https://gist.github.com/nak1114/7ea63204203883c5884d + +Now in a new in a new command prompt run the following commands: + +``` +`rbenv rehash` +``` + + Note: 7z can ask you to extract an archive, simple click extract + +## SSL problem + +Sometimes rbenv doesn't install the root certificate, so you can't download any gems. + +follow these steps for the fix https://bundler.io/v1.16/guides/rubygems_tls_ssl_troubleshooting_guide.html#updating-ca-certificates + +## Use the ruby interpreter in ruby mine ide + +Go to file->settings + +Under "Ruby SDK and gems", click on the plus sign to add a new local. + +The path shouled something of the following. (copy the path first in windows explorer, then the %USERPROFILE% gets automatically replaced) + +``` +%USERPROFILE%\.rbenv-win\versions\2.3.3-x64\bin +``` + +now select the ruby.exe and set the interpreter on for the project. + +![event log ](event_log.png) + +Ruby mine, will detect it has some uninstalled gems, click on install. Then click on "ok", "install". Now ruby Mine will install Bundler and all the gems specified in the gem file. + +you will get a warning about bundle.bat, just ignore it. + +Now "views"->"tool windows"->"terminal" will open a terminal, run the following command `rake db:migrate` . + +Now you can just run the project (shift + F10) + +## References + +https://bundler.io/v1.16/guides/rubygems_tls_ssl_troubleshooting_guide.html#updating-ca-certificates + +https://github.com/nak1114/rbenv-win \ No newline at end of file diff --git a/event_log.png b/event_log.png new file mode 100644 index 0000000..1f23ada Binary files /dev/null and b/event_log.png differ