Add rake task for cloning projects

This commit is contained in:
Max Wofford 2025-05-20 13:31:27 -04:00
parent 5ae122cd54
commit edcdb98d18
2 changed files with 14 additions and 0 deletions

View file

@ -33,3 +33,11 @@ Done your project + want to submit it to get your grant? Submit it in the form h
Remember to read through the [submission guidelines](https://highway.hackclub.com/advanced/submitting) before submitting! Remember to read through the [submission guidelines](https://highway.hackclub.com/advanced/submitting) before submitting!
# Ready. Set. Build! # Ready. Set. Build!
---
# Website development
Ooooh, you're in the README to figure out how the actual highway website works? Sure!
It's a standard rails codebase, but when you first start up you might want to run `bin/rails projects:clone` to download all the submissions.

View file

@ -0,0 +1,6 @@
namespace :projects do
desc "Clone or update all projects from submissions.yml"
task clone: :environment do
CloneProjectsJob.perform_now
end
end