This is a modified fork of my tech blog.
Refer to this guide
Markdown motherfucker.. do you not speak it?
Just dump them in the main directory as per guide
Simple run the following command
bundle exec jekyll serve
Right now deployments are done simply by doing a git push to GitLab or Github (It's that easy).
rm -fr _site
bundle exec jekyll build
Remove past files
aws --profile=perceptionz s3 rm --recursive s3://v2.itinerantfoodie.com/
aws --profile=perceptionz s3 sync ./_site s3://itinerantfoodie.com --region ap-northeast-2 --exclude '.DS_Store' --exclude 'node_modules/*' --exclude '.git/*' --exclude '.gitignore' --exclude 'Gemfile.*' --exclude '*.md' --acl public-read
SSL domains (this should all get added to the certificate)
- itinerantfoodie.com
- static.itinerantfoodie.com
- www.itinerantfoodie.com
- v2.itinerantfoodie.com
./certbot-auto certonly -a manual
aws --profile=perceptionz s3 sync ./ssl-challenge s3://static.itinerantfoodie.com/.well-known/acme-challenge --region us-east-1 --acl public-read
# Run for each redirected hostname (because it seems to follow redirects to itinerantfoodie.com)
aws --profile=perceptionz s3 sync ./ssl-challenge s3://static.itinerantfoodie.com/.well-known/acme-challenge --region ap-northeast-2 --acl public-read
or simply Just
rake sslchallenge
sudo cat /etc/letsencrypt/live/itinerantfoodie.com/cert.pem > /home/ubuntu/itinerantfoodie.com/cert.pem ; sudo cat /etc/letsencrypt/live/itinerantfoodie.com/privkey.pem > /home/ubuntu/itinerantfoodie.com/privkey.pem ; sudo cat /etc/letsencrypt/live/itinerantfoodie.com/chain.pem > /home/ubuntu/itinerantfoodie.com/chain.pem ; sudo chown -R ubuntu /home/ubuntu/itinerantfoodie.com
aws iam upload-server-certificate --server-certificate-name itinerantfoodie`python -c "import datetime; import time; import math; print(math.floor(time.mktime(datetime.datetime.today().timetuple())))"` --certificate-body file:///home/ubuntu/itinerantfoodie.com/cert.pem --private-key file:///home/ubuntu/itinerantfoodie.com/privkey.pem --certificate-chain file:///home/ubuntu/itinerantfoodie.com/chain.pem --path /cloudfront/
Then note the server certificate