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

Version Path
anycable-core-1.6.0.rc.1 bin/anycabled
anycable-core-1.5.2 bin/anycabled
anycable-core-1.5.1 bin/anycabled
anycable-core-1.5.0 bin/anycabled
anycable-core-1.4.4 bin/anycabled
anycable-core-1.5.0.rc.1 bin/anycabled
anycable-core-1.4.3 bin/anycabled
anycable-core-1.4.2 bin/anycabled
anycable-core-1.4.1 bin/anycabled
anycable-core-1.4.0 bin/anycabled
anycable-core-1.4.0.rc.3 bin/anycabled
anycable-core-1.4.0.rc.2 bin/anycabled
anycable-core-1.4.0.rc.1 bin/anycabled
anycable-core-1.4.0.pre.rc.1 bin/anycabled
anycable-core-1.3.1 bin/anycabled
anycable-core-1.3.0 bin/anycabled
anycable-core-1.2.5 bin/anycabled
anycable-core-1.2.4 bin/anycabled
anycable-core-1.2.3 bin/anycabled
anycable-core-1.2.2 bin/anycabled