Giter Site home page Giter Site logo

website's Introduction

Domain setup

  1. Buy domain on iwantmyname
  2. Create www.mikefrawley.com bucket in s3
    • enable for web
    • paste in bucket policy from [1]
  3. Install middleman syng gem and set secret key config
    • load from un-checked in secrets.rb

Ugh, pretty painful as I tried setting up mikefrawley.com and www.mikefrawley.com buckets in s3 and load from the naked domain. I entered in a redirect from mikefrawley.com => www.mikefrawley.com initialialy which I tried to correct but s3 console wouldn't let me delete that entry. Even deleting and recreating the bucket kept it around. Anyways, its a bit more work to set that up anyways as it requires using amazon's dns system so I did a dns level redirect.

[1] http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html

Asset hosting

Setting up cloudfront was really easy. Made assets{1-4} subdomain and enabled asset hosting in cofig.

w/o cloudfront: 62 requests ❘ 4.6 MB transferred ❘ 13.88 s (onload: 13.90 s, DOMContentLoaded: 2.11 s) w/ cloudfront and 4 asset hosts: 62 requests ❘ 4.6 MB transferred ❘ 6.55 s (onload: 6.58 s, DOMContentLoaded: 3.01 s)

misc

Resize images:

mogrify -resize 666x444 **/*.jpg

website's People

Contributors

ratbeard avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.