I'm using the mina gem since 2 weeks and I've searched online to find a nice way to do my seeding in my rails staging.
The seed must be a task so it is not called every time a deploy is done.
What I already have is the following:
desc "Seed data to the database"
task :seed do
queue "bundle exec rake db:seed RAILS_ENV=staging"
end
Do you think this is correct, I know for 100% that it works if I just type the command on the server.
Kind regards.