Skip to content

Commit

Permalink
Merge pull request #3 from getlago/dev-configuration
Browse files Browse the repository at this point in the history
misc: Add local env configuration
  • Loading branch information
jdenquin authored Feb 28, 2022
2 parents ceece5d + c53adc3 commit 6d70d09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
group :development, :test do
gem 'byebug'
gem 'debug', platforms: %i[mri mingw x64_mingw]
gem 'dotenv'
gem 'factory_bot_rails'
gem 'faker'
gem 'rspec-rails'
end

group :development do
gem 'coffee-rails'
gem 'dotenv'
gem 'graphiql-rails', git: 'https://github.com/rmosolgo/graphiql-rails.git'
gem 'sass-rails'
gem 'uglifier'
Expand Down
1 change: 0 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ class Application < Rails::Application
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.api_only = true
Dotenv.load
end
end
4 changes: 4 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@

# Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true

config.hosts << 'api.lago.dev'

Dotenv.load
end

0 comments on commit 6d70d09

Please sign in to comment.