Closed brendam closed 10 years ago
Created a dev branch and set up the rackspace server to pull it down (although, that bit is currently not working as per autobuild issue)
I set up an alias in apache for /spaceapi.json (this way it doesn't get deleted when we build the site from source) to /var/www/spaceapi.json
I added a job in root's crontab to download the file from space.makehackvoid.com/status every five minutes.
The time (and which user the file is downloaded as) may need tweaking. Does anyone have any thoughts?
Closing this issue as it's resolved. But we may need to keep an eye on the five minute cron and see if it causes any issues (I don't think it will).
http://space.makehackvoid.com/status gets set by the spaceprobe being turned on and off. The website home page uses https://github.com/makehackvoid/makehackvoid.com/blob/master/_assets/javascripts/spaceapi-check.js to look for a local /spaceapi.json file. We need to link these two up so that the open/closed gets toggled on the webpage.