Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Personal Website

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
NotificationsYou must be signed in to change notification settings

rgant/rob.gant.ninja

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Website

Deployment

Install AWS CLI, S3cmd and Terraform:

brew tap hashicorp/tapbrew install awscli hashicorp/tap/terraform s3cmd

Configure AWS:aws configure --profile personal. Use profiles, don't setup defaultcredentials. If you want to stop typing--profile then useexport AWS_PROFILE=personal.

Configure s3cmd:s3cmd --configure

Manually sync website files

Terraform might update the website bucket if you mark that resource as tainted,but it is probably easier to just do the command yourself.

s3cmd sync --no-preserve --delete-removed --add-header="Cache-Control:public,max-age=31536000,immutable" ./dist/ s3://rob-gant-ninja/s3cmd modify --cf-invalidate-default-index --add-header="Cache-Control:public,max-age=2592000,stale-while-revalidate=86400" s3://rob-gant-ninja/index.html

By defaults3cmd sync preserves file attributes as metadata on the s3 key and thatdata is then converted into an HTTP header in the response. Using--no-preservewon't impact the ability ofsync to checkfor changed files.

Icons

  • favicon.ico

    magick -density 256x256 -background transparent src/icon.svg -define icon:auto-resize -colors 256 src/favicon.ico
  • Android Icon (Big icon; so 58px of padding around icon.):

    magick -density 256x256 -background'#3e454c' src/icon.svg -resize 454x454 -gravity center -extent 512x512 src/icon-512.png
  • Apple Touch Icon (Put 20px of padding around the icon.):

    magick -density 256x256 -background'#3e454c' src/icon.svg -resize 152x152 -gravity center -extent 192x192 src/icon.png

About

Personal Website

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp