Skip to content

Instantly share code, notes, and snippets.

@augustf
Last active January 3, 2016 10:09
Show Gist options
  • Save augustf/8447292 to your computer and use it in GitHub Desktop.
Save augustf/8447292 to your computer and use it in GitHub Desktop.
Maintain nightly Concerto instance
namespace :reset_nightly do
system("git checkout .")
system("git pull")
Rake::Task["db:reset"].invoke
Rake::Task["db:migrate"].invoke
@user = User.new(:email => 'admin@concerto-signage.org', :password => 'some_password', :password_confirmation => 'some_password', :is_admin => true)
@user.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment