Skip to content

Instantly share code, notes, and snippets.

@andreagrandi
Last active July 2, 2017 09:00
Show Gist options
  • Save andreagrandi/9a2aee5d8283aa94b6d75989d258713b to your computer and use it in GitHub Desktop.
Save andreagrandi/9a2aee5d8283aa94b6d75989d258713b to your computer and use it in GitHub Desktop.
Step by step notes to migrate andreagrandi.it to a static website
- create andreagrandi.it repository on GitHub
- clone andreagrandi.it repository locally
- copy files from andreagrandi.co.uk repository to andreagrandi.it one
- change extras/CNAME content to: www.andreagrandi.it
- change SITEURL in publishconf.py to: https://www.andreagrandi.it
- change DISQUS_SITENAME to ‘andrea-grandi-it’
- get a new GitHub token from https://github.com/settings/tokens
- activate TravisCI for repository andreagrandi.it
- run travis encrypt GH_TOKEN=……… from inside andreagrandi.it repository
- copy the generated value to .travis.yml
- deactivate TravisCI for repository andreagrandi.co.uk
- git commit all the changes to andreagrandi.it
- git push origin master
- on CloudFlare Page Rules:
- http://www.andreagrandi.it/* - Always Use HTTPS
- https://andreagrandi.it/ - Forwarding URL - 301 Permanent Redirect - https://www.andreagrandi.it
- on CloudFlare DNS add:
- CNAME - andreagrandi.it - andreagrandi.github.io
- CNAME - www - andreagrandi.github.io
(and remove the existing CNAME entries)
- set a web redirect on Gandi.net from andreagrandi.co.uk to andreagrandi.it
- … cross fingers! :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment