This repository contains scripts for the job that generates data for the dashboard.
To test this script locally:
- Get a Mac with a recent Mac OS X.
- Clone this repository exactly into
~/flutter_dashboard/dashboard_box
, so that therun.sh
script could be found exactly at~/flutter_dashboard/dashboard_box/run.sh
. - For better results, make sure there's nothing else in
~/flutter_dashboard
. - Complete the Flutter Setup, if you haven't already. Note, however, that this job will install its own copy of Flutter.
- Install Jekyll.
- Connect an Android device.
- Set
ANDROID_DEVICE_ID
environment variable to the ID of your device as reported byflutter devices
command (this is because the ID of the device connected to the box is not the same as yours). - Launch
run.sh
. Or, if you are testing thelanuchd
configuration, thenlaunchctl start job.plist
, but don't forget to kill the job after testing, otherwise it will spin on your computer forever, draining all kinds of resources (launchctl remove io.flutter.dashboard
).
If launchd
was able to run the script, you will be able to find the output in
/tmp/flutter.dashboard.stdout
(standard output) and in
/tmp/flutter.dashboard.stderr
(standard error).
To locally test the dashboard front-end, use
http://localhost:8181
and serve the main_site
directory from this repo.
The OAuth redirects are very specific.