This is the MAGLab website source code and a work in progress.
Also, the readme is a work in progress.
Prerequisites
- Docker
docker build -t maglaboratory/website .
docker run -p 8000:80 -v $(pwd):/website --name website --rm maglaboratory/websiteVisit the home page at http://localhost:8000
The view compiler's dependencies in src/vendor are not committed. Install them before the first rebuild, and again whenever src/composer.lock changes:
docker run -v $(pwd):/website --rm -w /website/src -u $(id -u):$(id -g) -e COMPOSER_HOME=/tmp/composer maglaboratory/website composer installRunning as your own user keeps src/vendor owned by you rather than root. Patches to dependencies live in src/patches and are applied automatically by composer install.
To rebuild the site, run
docker run -v $(pwd):/website --rm maglaboratory/website php -f src/compile.php- Write Deployment Instructions
- Add a new sensor in the haldor table where the name is what the sensor name should be
- Change the old sensor name to the new sensor name using the "UPDATE" query
- Remove the old sensor name from the sensor name enumeration
The year is mentioned in four places on MAGLab.
- _map_footer
- board layout
- hal layout
- main layout
rsync -rpt home/* USER_maglabs@ssh.nyc1.nearlyfreespeech.net:/home