Enables GraphQL UI in production
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user