Sha256: c74525415e196fd30845f63eca951db6e6bf9d2193270c0d51948e5dff01ad22
Contents?: true
Size: 588 Bytes
Versions: 41
Compression:
Stored size: 588 Bytes
Contents
#!/usr/bin/env ruby require "anycable/cli" begin require "daemons" rescue LoadError raise <<~MSG You need to add gem 'daemons' to your Gemfile if you want to use `anycabled`: # Gemfile gem "daemons", "~> 1.3", require: false MSG end options = { dir: "tmp/pids", log_output: false } # Preserve current directory. We need it inside the server. current_dir = Dir.pwd # Clean ARGV from daemon command and args _, _, args = Daemons::Controller.split_argv(ARGV) Daemons.run_proc("anycable", options) do Dir.chdir current_dir AnyCable::CLI.new.run(args) end
Version data entries
41 entries across 41 versions & 2 rubygems