Sha256: 613813a0b7162775900b300f8348f77f931658f3b7186b7e7bf6489ccc7ac257
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
# Peony Local Script Management System Using Rake (是不是为记不住经常用的脚本和配置而烦恼! 让Peony把你的脚本和配置记录下来。) ## Installation Add this line to your application's Gemfile: gem 'peony' And then execute: $ bundle Or install it yourself as: $ gem install peony ## Usage Peony inherits from Rake, and added many useful methods for you to write rake scripts. If you want to run nginx server on your local server, you can add the following to your Rakefile set :base_dir, "/u" set_default :www_http_port, 80 set :www_paths, { "/homebrew" => "/Library/Caches/Homebrew" } set :nginx, "/usr/local/bin/nginx" Execute the following commands peony nginx:init peony nginx:www:init peony nginx:www:start Then you can check the http://localhost/homebrew Maybe you just want to use rake, all you just want to use some recipes of peony, you can just add the following code to your Rakefile require 'peony' require 'peony/rake' spec = Gem::Specification.find_by_name("peony") modules = ["#{spec.gem_dir}/recipes/nginx.rake", "#{spec.gem_dir}/recipes/nginx/www.rake"] modules.each do|f| load f end ## Directory Convension <pre> |--u |--bin |--etc |--my.cnf |--nginx |--mongo |--httpd |--elasticsearch |--... |--share |--apache-tomcat-6.0.32 |--php-5.3.10 |--... |--var |--data |--mysql |--pgsql |--mongo |--elasticsearch |--redis |--log |--run |--tmp |--www </pre> ## Contributing 1. Fork it 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 new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peony-0.1.2 | README.md |