Socket
Book a DemoInstallSign in
Socket

mina-clockwork

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mina-clockwork

1.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Mina + Clockwork

Clockwork deployment scenario for mina. It uses clockworkd executable to start clockwork daemon on the server. clockworkd is the part of the clockwork.

Important! You will need both clockwork and daemons gems available on the server!

Installation

# Gemfile

gem "mina-clockwork"

group :production do
  gem "daemons"  # for `clockworkd`
end

Configuration

# config/deploy.rb

require "mina/clockwork"

... set configuration options here if you need ...

task deploy: :environment do
  deploy do
    invoke :"clockwork:stop"
    ...

    on :launch do
      ...
      invoke :"clockwork:start"
    end
  end
end

Use these options to configure the plugin:

  • clockwork_dir - Daemon working dir (Default: current deployment path)
  • clockwork_file - Clock file (Default: [current deployment path]/clock.rb)
  • clockwork_identifier - Identifier of the clockworkd process (Default: name of the clock file)
  • clockwork_pid_dir - Dir for *.pid file (Default: [shared path]/tmp/pids)
  • clockwork_log_dir - Dir for *.log files (Default: [shared path]/log)

Example:

set :clockwork_file, -> { "#{fetch(:current_path)}/my_clock_file.rb"  }

Tasks

mina clockwork:restart  # Restart clockwork daemon
mina clockwork:start    # Start clockwork daemon
mina clockwork:stop     # Stop clockwork daemon

Contributing

Feel free to contribute!

FAQs

Package last updated on 14 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.