Last active
July 2, 2017 09:00
-
-
Save andreagrandi/9a2aee5d8283aa94b6d75989d258713b to your computer and use it in GitHub Desktop.
Step by step notes to migrate andreagrandi.it to a static website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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