Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sheharyarn/capistrano-rake
Execute rake tasks on remote servers (Only Capistrano 3+)
https://github.com/sheharyarn/capistrano-rake
capistrano capistrano-rake capistrano-tasks hacktoberfest rake ruby
Last synced: about 2 months ago
JSON representation
Execute rake tasks on remote servers (Only Capistrano 3+)
- Host: GitHub
- URL: https://github.com/sheharyarn/capistrano-rake
- Owner: sheharyarn
- License: mit
- Created: 2016-03-31T09:30:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T15:09:08.000Z (over 4 years ago)
- Last Synced: 2024-10-13T09:58:02.371Z (2 months ago)
- Topics: capistrano, capistrano-rake, capistrano-tasks, hacktoberfest, rake, ruby
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 41
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
capistrano-rake
===============Invoke any `rake` task on a remote server using [`capistrano`](https://capistranorb.com/).
Installing this gem adds a new capistrano task `invoke:rake` that will allow you to
execute rake tasks remotely. __Only supports Capistrano 3 and above__.## Installation
Add the gem to your `Gemfile` after setting up Capistrano, preferably in the `:development`
group:```ruby
group :development do
gem 'capistrano', require: false
gem 'capistrano-rake', require: false
end
```Then `bundle` and add it to your `Capfile`:
```ruby
# Capfilerequire 'capistrano/rake'
```## Usage
To execute a rake task on a remote server, you need to pass that task's name to the `invoke:rake`
capistrano task like this:```bash
$ cap stage invoke:rake TASK=some:rake_task# Examples
$ cap staging invoke:rake TASK=db:seed
$ cap production invoke:rake TASK=paperclip:refresh```
## Configuration
You can optionally specify the capistrano roles for the rake task (Defaults to `:app`):
```ruby
# Defaults to [:app]
set :rake_roles, [:db, :app]
```## Contributing
1. Fork it ( https://github.com/sheharyarn/capistrano-rake/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).