From 3a50cc3a99d6f152bd35532b2884669ab63eaeca Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 15 Jun 2017 12:12:41 +0200 Subject: [PATCH] Enables GraphQL UI in production --- Gemfile | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index b737e0080..9a659ab1c 100644 --- a/Gemfile +++ b/Gemfile @@ -72,6 +72,7 @@ gem 'rails-assets-markdown-it', source: 'https://rails-assets.org' gem 'cocoon' gem 'graphql', '~> 1.6.3' +gem 'graphiql-rails', '~> 1.4.1' group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console @@ -108,7 +109,6 @@ end group :development do # Access an IRB console on exception pages or by using <%= console %> in views gem 'web-console', '3.3.0' - gem 'graphiql-rails', '~> 1.4.1' end eval_gemfile './Gemfile_custom' diff --git a/config/routes.rb b/config/routes.rb index a8bb7afc4..5c5284a91 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -406,9 +406,9 @@ Rails.application.routes.draw do if Rails.env.development? mount LetterOpenerWeb::Engine, at: "/letter_opener" - mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql' end + mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql' mount Tolk::Engine => '/translate', :as => 'tolk' # more info pages