method
container_env
rails latest stable - Class:
Rails::Generators::DevcontainerGenerator
container_env()private
No documentation available.
# File railties/lib/rails/generators/rails/devcontainer/devcontainer_generator.rb, line 73
def container_env
return @container_env if @container_env
@container_env = {}
@container_env["CAPYBARA_SERVER_PORT"] = "45678" if options[:system_test]
@container_env["SELENIUM_HOST"] = "selenium" if options[:system_test]
@container_env["REDIS_URL"] = "redis://redis:6379/1" if options[:redis]
@container_env["DB_HOST"] = database.name if database.service
@container_env
end