README.md in capistrano-twingly-3.0.0 vs README.md in capistrano-twingly-4.0.0

- old
+ new

@@ -54,15 +54,15 @@ after :finishing, 'deploy:nginx:enable_config' after :finishing, 'deploy:nginx:reload' end ``` -### Upstart +### Upstart/Systemd ```Ruby # Capfile -require 'capistrano/twingly/upstart' +require 'capistrano/twingly/service' # config/deploy.rb set :procfile_contents, -> { contents = '' contents << "web: " @@ -72,33 +72,10 @@ contents << "-b unix:///tmp/#{fetch(:app_name)}.sock " contents << "-e #{fetch(:stage)}" } namespace :deploy do - desc 'Start application' - task :start do - invoke 'deploy:export_upstart' - on roles(:app) do - sudo :start, fetch(:application) - end - end - - desc 'Restart application' - task :restart do - invoke 'deploy:export_upstart' - on roles(:app) do - execute "sudo restart #{fetch(:application)} || sudo start #{fetch(:application)}" - end - end - - desc 'Stop application' - task :stop do - on roles(:app) do - sudo :stop, fetch(:application) - end - end - after :stop, 'deploy:disable_autostart' after :start, 'deploy:enable_autostart' after :restart, 'deploy:enable_autostart' end ``` @@ -146,16 +123,16 @@ * Update the examples in this README if needed. * Bump the version in `capistrano-twingly.gemspec` in a commit, no need to push (the release task does that). +* Ensure you are signed in to RubyGems.org as [twingly][twingly-rubygems] with `gem signin`. + * Build and [publish](http://guides.rubygems.org/publishing/) the gem. This will create the proper tag in git, push the commit and tag and upload to RubyGems. bundle exec rake release - * If you are not logged in as [twingly][twingly-rubygems] with ruby gems, the rake task will fail and tell you to set credentials via `gem push`, do that and run the `release` task again. It will be okay. - -* Update the changelog with [GitHub Changelog Generator](https://github.com/skywinder/github-changelog-generator/) (`gem install github_changelog_generator` if you don't have it, set `CHANGELOG_GITHUB_TOKEN` to a personal access token to avoid rate limiting by GitHub). This command will update `CHANGELOG.md`, commit and push manually. +* Update the changelog with [GitHub Changelog Generator](https://github.com/skywinder/github-changelog-generator/) (`gem install github_changelog_generator` if you don't have it, set `CHANGELOG_GITHUB_TOKEN` to a personal access token to avoid rate limiting by GitHub). This command will update `CHANGELOG.md`. You need to commit and push manually. github_changelog_generator ## Note about `CHANGELOG.md`