Opinionated development workflow and commonly used tools for Ruby on Rails based development.
As usual, add the Plur into your Gemfile:
gem 'plur'
Currently there are two parts on Plur, deployment and helper:
If you're using Capistrano, Figaro, Foreman, and deploy it into Ubuntu box or any OS that use Upstart, then you're on right track :)
# deploy.rb
require 'plur/capistrano'
#
## Below is the default value, I mean you don't need write these, except you are differ.
#
# foreman
set :foreman_format, "upstart"
set :foreman_location, "/etc/init"
set :foreman_procfile, "Procfile"
set :foreman_root, release_path
set :foreman_port, 5000
set :foreman_app, application
set :foreman_user, user
set :foreman_log, 'shared_path/log'
set :foreman_concurrency, false
# figaro
set :figaro_yaml, true
set :figaro_symlink, true
set :figaro_output, 'shared_path/application.yml'
set :figaro_config, 'latest_release/config/application.yml'
# upstart
set :service_name, application
If you like to locally precompile assets to reduce load on server, you can add:
# deploy.rb
require 'plur/capistrano/local'
By default Plur will install several helpers, see view.rb:
- current_locale
- rtl_locales
- rtl?
- orientation
- notifications
- namespace_name
- body_attributes
- build_html
- Fork it
- 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