https://github.com/907th/mina-clockwork
Clockwork deployment scenario for mina (unmaintained).
https://github.com/907th/mina-clockwork
Last synced: about 1 year ago
JSON representation
Clockwork deployment scenario for mina (unmaintained).
- Host: GitHub
- URL: https://github.com/907th/mina-clockwork
- Owner: 907th
- License: mit
- Created: 2014-07-28T08:54:30.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T09:57:14.000Z (almost 5 years ago)
- Last Synced: 2024-03-15T05:44:59.178Z (over 2 years ago)
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Unmaintained
Dear users of this gem! Sorry, but I no longer maintain it!
# 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`](https://github.com/Rykian/clockwork).
*Important!* You will need both `clockwork` and `daemons` gems available on the server!
## Installation
```ruby
# Gemfile
gem "mina-clockwork"
group :production do
gem "daemons" # for `clockworkd`
end
```
## Configuration
```ruby
# 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:
```ruby
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!