Enables GraphQL UI in production

This commit is contained in:
rgarcia
2017-06-15 12:12:41 +02:00
parent 2a095a3b82
commit 3a50cc3a99
2 changed files with 2 additions and 2 deletions

View File

@@ -72,6 +72,7 @@ gem 'rails-assets-markdown-it', source: 'https://rails-assets.org'
gem 'cocoon' gem 'cocoon'
gem 'graphql', '~> 1.6.3' gem 'graphql', '~> 1.6.3'
gem 'graphiql-rails', '~> 1.4.1'
group :development, :test do group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console # Call 'byebug' anywhere in the code to stop execution and get a debugger console
@@ -108,7 +109,6 @@ end
group :development do group :development do
# Access an IRB console on exception pages or by using <%= console %> in views # Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '3.3.0' gem 'web-console', '3.3.0'
gem 'graphiql-rails', '~> 1.4.1'
end end
eval_gemfile './Gemfile_custom' eval_gemfile './Gemfile_custom'

View File

@@ -406,9 +406,9 @@ Rails.application.routes.draw do
if Rails.env.development? if Rails.env.development?
mount LetterOpenerWeb::Engine, at: "/letter_opener" mount LetterOpenerWeb::Engine, at: "/letter_opener"
mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql'
end end
mount GraphiQL::Rails::Engine, at: '/graphiql', graphql_path: '/graphql'
mount Tolk::Engine => '/translate', :as => 'tolk' mount Tolk::Engine => '/translate', :as => 'tolk'
# more info pages # more info pages