Add s2 server

Part of #868.
This commit is contained in:
Thaddee Tyl 2017-02-12 23:47:51 +01:00
parent a4a46b070c
commit 982bcf62aa
2 changed files with 15 additions and 5 deletions

View File

@ -166,10 +166,12 @@ sl_insight_userUuid
# Main Server Sysadmin
- DNS round-robin between https://vps244529.ovh.net/try.html and https://vps71670.vps.ovh.ca/try.html.
- Servers in DNS round-robin:
- s0: 192.99.59.72 (vps71670.vps.ovh.ca)
- s1: 51.254.114.150 (vps244529.ovh.net)
- s2: 149.56.96.133 (vps117870.vps.ovh.ca)
- Self-signed TLS certificates, but `img.shields.io` is behind CloudFlare, which provides signed certificates.
- Using node v0.12.7 because later versions, combined with node-canvas, give inaccurate badge measurements.
- Using forever (the node monitor) to automatically restart the server when it crashes.
- Using systemd to automatically restart the server when it crashes.
See https://github.com/badges/ServerScript for helper admin scripts.

View File

@ -20,7 +20,7 @@ website:
| $(SED) "s,var origin = '';,var origin = 'https://img.shields.io';," \
| $(SED) "s,<style>,<!-- WARNING: THIS FILE WAS GENERATED FROM try.html -->\\"$(NEWLINE)"<style>," > index.html
deploy: deploy-s0 deploy-s1 deploy-gh-pages
deploy: deploy-s0 deploy-s1 deploy-s2 deploy-gh-pages
deploy-s0:
git add -f Verdana.ttf
@ -38,6 +38,14 @@ deploy-s1:
git reset HEAD~1
git checkout master
deploy-s2:
git add -f Verdana.ttf
git add -f private/secret.json
git commit -m'MUST NOT BE ON GITHUB'
git push -f s2 HEAD:master
git reset HEAD~1
git checkout master
deploy-gh-pages:
(git checkout -B gh-pages && \
git merge master && \
@ -69,4 +77,4 @@ redis:
test:
npm test
.PHONY: all favicon website deploy deploy-s0 deploy-s1 deploy-gh-pages deploy-heroku setup redis test
.PHONY: all favicon website deploy deploy-s0 deploy-s1 deploy-s2 deploy-gh-pages deploy-heroku setup redis test