bin/compose-hook in compose-hook-0.1.1 vs bin/compose-hook in compose-hook-0.1.2
- old
+ new
@@ -2,8 +2,11 @@
# frozen_string_literal: true
$LOAD_PATH << File.join(File.dirname(__FILE__), "../lib")
-require 'compose-hook'
+require "compose-hook"
-run ComposeHook::WebHook.run!
+port = ENV["COMPOSE_HOOK_PORT"] || 1337
+host = ENV["COMPOSE_HOOK_HOST"] || "0.0.0.0"
+
+run ComposeHook::WebHook.run!(port: port, bind: host)