diff --git a/Gemfile b/Gemfile index 775f515c..206bf0c4 100644 --- a/Gemfile +++ b/Gemfile @@ -16,8 +16,9 @@ gem 'activeadmin' gem 'devise' gem 'figaro' gem 'jbuilder', '~> 2.0' -gem 'pg', '~> 0.21' -gem 'puma', '>= 3.12.4' +gem 'pg', '~> 0.21' if RUBY_PLATFORM !~ /mingw32/ +gem 'pg', '~> 1.4' if RUBY_PLATFORM =~ /mingw32/ +gem "puma", ">= 3.12.4" gem 'rails', '~> 5.2.5' gem 'redis' @@ -45,7 +46,7 @@ gem 'httparty' # for api pagination gem 'kaminari' -gem 'mini_racer' +gem 'mini_racer' if RUBY_PLATFORM !~ /mingw32/ # Too many problems, is it even needed? group :development do gem 'letter_opener' @@ -66,7 +67,7 @@ group :development, :test do gem 'rack-mini-profiler' gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' - gem 'stackprof' + gem 'stackprof' if RUBY_PLATFORM !~ /mingw32/ # Not supported on Microsoft Windows gem 'database_cleaner-active_record' gem 'factory_bot_rails' gem 'faker' @@ -78,10 +79,15 @@ group :development, :test do gem 'capybara' end -gem 'sentry-ruby' -gem 'sentry-rails' +gem "sentry-ruby" +gem "sentry-rails" gem 'grape', '~> 1.7' gem 'grape-entity' gem 'grape_on_rails_routes' gem 'rack-cors' gem 'uuidtools', '~> 2.1', '>= 2.1.5' + +gem 'sys-proctable', :platforms => :mswin +gem 'fast_stack', :platforms => :mswin +gem 'wdm', '>= 0.1.0', :platforms => :mswin +gem 'tzinfo-data', :platforms => :mswin diff --git a/QUICKSTART.md b/QUICKSTART.md index 143fbcfc..b299091e 100644 --- a/QUICKSTART.md +++ b/QUICKSTART.md @@ -12,6 +12,8 @@ macOS run `sh INSTALL_mac.sh`. ## Manual environment setup +If you are using Microsoft Windows, download Ruby [here](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.2-1/rubyinstaller-devkit-2.7.2-1-x64.exe). + ### Install Ruby with [Rbenv](https://github.com/rbenv/rbenv) (shamelessly copied from Rbenv doc) @@ -82,7 +84,9 @@ Install Rails, Postgres, Yarn, etc echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt update && sudo apt install yarn -In your code directory run: +If you are using Windows, install node.js [here](https://nodejs.org/dist/v18.16.0/node-v18.16.0-x64.msi) (comes with Yarn) and PostgreSQL [here](https://sbp.enterprisedb.com/getfile.jsp?fileid=1258422). Install Ruby on Rails by running `gem install rails` on the command line. + +In your code directory run (if you are using Windows, do not run the `rbenv` commands): git clone https://github.com/tosdr/edit.tosdr.org cd edit.tosdr.org