method
container_env
v8.1.1 -
Show latest stable
- Class:
Rails::Generators::DevcontainerGenerator
container_env()private
No documentation available.
# File railties/lib/rails/generators/rails/devcontainer/devcontainer_generator.rb, line 81
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["KAMAL_REGISTRY_PASSWORD"] = "$KAMAL_REGISTRY_PASSWORD" if options[:kamal]
@container_env["DB_HOST"] = database.name if database.service
@container_env
end