aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb
diff options
context:
space:
mode:
authorAlban Peignier2016-05-04 16:24:09 +0200
committerAlban Peignier2016-05-04 16:24:09 +0200
commit2db814880ad4aaf512b72b7527b0a41a3f781c37 (patch)
tree417185e4fd99b162c09b82f6d0fdb083d848a4bb /config/deploy.rb
parent84dad3d53cc9ee0f237c5065314de00b1b0c7e5e (diff)
downloadchouette-core-2db814880ad4aaf512b72b7527b0a41a3f781c37.tar.bz2
Run deploy:seed in ci:deploy. Refs #828
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 9c468df2c..ce41e5971 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -58,6 +58,11 @@ namespace :deploy do
run "sudo /usr/local/sbin/cap-fix-permissions #{deploy_to}"
end
after "deploy:update", "deploy:group_writable"
+
+ desc "Run db:seed"
+ task :seed do
+ run "cd #{current_path} && #{bundle_cmd} exec /var/lib/gems/2.2.0/bin/rake db:seed RAILS_ENV=#{rails_env}"
+ end
end
namespace :delayed_job do