{"action":"opened","issue":{"url":"https://api.github.com/repos/swcarpentry/website/issues/223","repository_url":"https://api.github.com/repos/swcarpentry/website","labels_url":"https://api.github.com/repos/swcarpentry/website/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/swcarpentry/website/issues/223/comments","events_url":"https://api.github.com/repos/swcarpentry/website/issues/223/events","html_url":"https://github.com/swcarpentry/website/issues/223","id":131788033,"number":223,"title":"Pulling remote servers during site rebuild","user":{"login":"pbanaszkiewicz","id":72821,"avatar_url":"https://avatars.githubusercontent.com/u/72821?v=3","gravatar_id":"","url":"https://api.github.com/users/pbanaszkiewicz","html_url":"https://github.com/pbanaszkiewicz","followers_url":"https://api.github.com/users/pbanaszkiewicz/followers","following_url":"https://api.github.com/users/pbanaszkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/pbanaszkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/pbanaszkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbanaszkiewicz/subscriptions","organizations_url":"https://api.github.com/users/pbanaszkiewicz/orgs","repos_url":"https://api.github.com/users/pbanaszkiewicz/repos","events_url":"https://api.github.com/users/pbanaszkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/pbanaszkiewicz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swcarpentry/website/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-05T23:26:02Z","updated_at":"2016-02-05T23:26:02Z","closed_at":null,"body":"Some things I noticed:\r\n1. `_data/amy.yml` is hard-coded in the repository and only updated from time to time\r\n2. AMY threw [`429: Too many requests`](https://httpstatuses.com/429) during `make amy` call\r\n3. Even though some things errored-out, the build carried on and finally the website went down…\r\n\r\n(Ignoring °3, 1&2 will end up with website build with historical data…)\r\n\r\nThe errors I can see here:\r\n1. `_data/amy.yml` shouldn't be included in the repository. It should be regenerated upon building OR it should have some static workshops saved and the file should be ignored\r\n2. Website should use a token for bigger rate limit (100/day for anonymous users, 1000/day for logged in users) OR log into one of AMY accounts\r\n3. `Makefile` should contain files like `_data/amy.yml` listed as dependencies for targets; website rebuild script should proceed if and only if all steps succeeded."}}