Skip to content

Commit caa5976

Browse files
committed
Load the env from .env
1 parent e07b054 commit caa5976

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/firehose-producer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__))
22

33
require "kafka"
4+
require "dotenv"
5+
6+
Dotenv.load
47

58
KAFKA_CLIENT_CERT = ENV.fetch("KAFKA_CLIENT_CERT")
69
KAFKA_CLIENT_CERT_KEY = ENV.fetch("KAFKA_CLIENT_CERT_KEY")

0 commit comments

Comments
 (0)