Mina Nginx
Mina tasks for handle with Nginx.
This gem provides several mina tasks:
mina nginx:link # Symlinking nginx config file
mina nginx:parse # Parse nginx configuration file and upload it to the server
mina nginx:reload # Reload Nginx
mina nginx:restart # Restart Nginx
mina nginx:setup # Setup Nginx
mina nginx:start # Start Nginx
mina nginx:status # Status Nginx
mina nginx:stop # Stop Nginx
Installation
Add this line to your application's Gemfile:
gem 'mina-nginx', :require => false
And then execute:
$ bundle
Or install it yourself as:
$ gem install mina-nginx
Usage
Add this to your config/deploy.rb file:
require 'mina/nginx'
Make sure the following settings are set in your config/deploy.rb:
application- application nameserver_name- your application's server_name in nginx (e.g. example.com)(optional)deploy_to- deployment path
Launch new tasks:
$ mina nginx:setup
$ mina nginx:link
You can parse an sample configuration file by mina nginx:parse on your server.
Be sure to edit shared/config/nginx.conf, and then:
$ mina nginx:reload
Contributing
- Fork it ( http://github.com/hbin/mina-nginx/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request