The blog about containerisation, virtual machines and useful shell snippets and findings

capistrano rails seed

namespace :deploy do
	desc "reload the database with seed data"
	task :seed do
	 puts "\n=== Seeding Database ===\n"
	 on primary :db do
	  within current_path do
	    with rails_env: fetch(:stage) do
	      execute :rake, 'db:seed'
	    end
	  end
	 end
	end
end