Closed gboone closed 8 years ago
And I have no idea why the build is failing. Looks like import_public
can't find safe_yaml
despite it being installed during the CI build. Anyone with more experience bundle
ing than me have thoughts?
Wherever it's getting run, it needs to be run as bundle exec ruby _data/import-public.rb
.
Done. Thanks for the assist, @mbland
This adjusts the import-public script to only work if there's an API baseurl specified in the _config.yml file. This will help people looking to reuse this Dashboard for their own agency by not automatically pulling information about our projects out of our API. The way it was written, every time
serve
orbuild
were issued from the go script, new data would be pulled down and a new projects.json file created. This would make it very tricky to adapt as a potential user might write their ownprojects.json
file only to have it overwritten as soon as the site is built.Along these same lines, we may want to think about a script that will setup this repo better for someone outside of 18F looking to reuse this code. Right now a reuser would have to do the following:
Now, if you run
./go serve
now you should see something similar to what you see at 18f.gsa.gov/dashboard