• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 447

  • Newest
  • Previous
  • Next
  • Oldest

The archive of what I posted on Twitter, which I now self host due to a lack of trust in Twitter and some other reasons.

I'll soon begin refelcting all my Mastodon posts here too. I'm happier self-hosting or maintaining an archive of my content on URLs that I can own.

There are tools to help you do this too. Such as this one from the makers of Eleventy.

A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 6th 2018 replying to this from @DinisCruz
@DinisCruz @Azizur @Netlify I think the same properties are true of @GoHugoIO. You can run the site locally during dev (the speed of that makes developing and populating a delight, BTW) or push to a github for an instant rebuild and deploy on @Netlify.

But whatever #jamstack setup is working for you!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 6th 2018 replying to this from @_munter_
@_munter_ @RyanTownsend @Netlify @adactio Wouldn't have been a problem if I had been a good boy when I decided to simplify my URLs and instigated a proper redirect pattern to handle all of that!

I was either forgetful or ignorant of how to do that on GH-Pages.

Naughty Philip.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 6th 2018 replying to this from @_munter_
@_munter_ @RyanTownsend @Netlify This is handy.

In my case I spotted inbound links from a post from @adactio back in 2009, which used a url format I had on my blog and later simplified.

https://domscripting.com/blog/display/120

I thought I had correctly redirected everything around 2011, but I forgot a pattern I once used.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 6th 2018 replying to this from @RyanTownsend
@RyanTownsend @Netlify I was just looking at my Google Analytics and seeing some 404 hits.

Currently that type of logging access and reporting is not available directly from Netlify.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 6th 2018 replying to this from @rwxrob
@robmuh @captainsafia @Netlify I like that mindset shift. #jamstack by default (unless something more is *genuinely* warranted) rather than LAMP or MEAN stack by default, even if all the moving parts could have been avoided.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 6th 2018
🤔 Spotting 404s on my blog caused by links to an old URL pattern I later simplified. Thought I dealt with that years ago, but fixed it in moments today thanks to @netlify's simple _redirects config:

/blog/:year/:month/:day/:slug /blog/:slug 301

😎

https://medium.com/netlify/10-netlify-features-to-surprise-and-delight-225e846b7b21#7007
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 6th 2018 replying to this from @auchenberg
@auchenberg Sorry to hear that you've been having such a tough time. Thank you for sharing this thoughtful and inspiring post. So many valuable lessons in there for all of us. Irrespective of our own health status.

Giant hugs and huge respect. x
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @
@magicspon @Netlify It could be that you've somehow got 2 webhooks firing the build.
In your admin, take a look in your Deploy Settings at the Build Hooks

(https://app.netlify.com/sites/{your-site}/settings/deploys#build-hooks)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @philhawksworth
@peduarte @Netlify This would be true on any host where you set HSTS headers to force HTTPS. It's not exotic or unusual to Netlify. (We just want you to know what this action is doing)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @peduarte
@peduarte @Netlify That is a scary looking bit of text! The intention here is just to be very transparent that HSTS headers will be set to 1 year, which is good practice. But if for some reason (I can't imagine why), you decided that you wanted to *disable* HTTPS, that would be the impact.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @_munter_
@_munter_ @Jack_Franklin @Netlify Come on in. The water's lovely.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @Jack_Franklin
@Jack_Franklin @Netlify You should probably read further down in the ToS. "An ice cream for Phil" is in there somewhere.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @Jack_Franklin
@Jack_Franklin @Netlify Correct. There is a soft limit in the terms of services... but it is massive. 100GB network bandwidth per month on free plans.

https://www.netlify.com/tos/
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @livmadsen
@livmadsen @Netlify Happy to hear it was useful, Liv. Thanks!

Yeah, the form handling and was the first things to make me realise that Netlify was not just a static web host. And that feature combined with notifications and triggers opens the doors to using it for so many things (for me, at least).
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @Jack_Franklin
@Jack_Franklin @Netlify
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 5th 2018 replying to this from @katrielalex
@katrielalex @kyhwana @davidcadrian @CiPHPerCoder @bascule You can indeed.

https://medium.com/@philhawksworth/10-netlify-features-to-surprise-and-delight-225e846b7b21#0b0b
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @m5
@m5 @brianleroux Some more "application-y" sites lend themselves better to client-side rendering driven by user actions etc as you mention. But the more you can deliver "ready to render" html down the wire, the better the perf and the fewer points of failure to worry about.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @brianleroux
@brianleroux By the by, if someone was to write an article on how @smashingmag migrated to a #jamstack architecture and used things like https://github.com/netlify/gotrue to power authentication and user sessions...

...would it pique your interest enough to put it in your eyes?!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @brianleroux
@brianleroux Yes. That's where a term like #jamstack can be useful. As the ecosystem of static hosting, automation & microservices gets richer, we can go beyond what we thought of as the limits of static sites.

@smashingmag's move from lots of stacks to jamstack on @netlify is a good example
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @m5
@m5 @brianleroux Heh. Not so much "naming a foundation", as trying to find a convenient term to refer to "static hosting with automated build and deployment infrastructure" – Which is a bit cumbersome to refer to.

Like how "LAMP stack" became a handy way to refer to quite a few moving parts.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @brianleroux
@brianleroux I like to think of putting as much distance as practically possible between the user and the complexity. If the f/e can just request static assets which were baked earlier, there are fewer things to break or be attacked.

As Aaron Swartz said in 2002(!) — "Bake, don't fry"
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @brianleroux
@brianleroux No problem. Except often we render on the b/e (or "generate HTML") in response to a request, when we could have done that at build time & de-risked all of our hosting infrastructure.

Not all cases of course, but do blogs really need a DB to reply to get requests? (For example)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @Gromski
@Gromski Happy to help if I can.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @lucianadrian
@lucianadrian @phae Naah. I think you're probably fine.

:)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • January 4th 2018 replying to this from @lucianadrian
@lucianadrian Although I'm not the product manager.

*Puts hands in pockets and glances over at @phae as she unpacks her belongings onto her desk*
  • Permalink
  • |
  • Twitter
  • Newest
  • Previous
  • Next
  • Oldest

The source code of this site is available on GitHub and is hosted and updated by Netlify automatically after each code commit

Other than where specified, the content on this site is published under a Creative Commons Attribution 3.0 licence.

Subscribe to a feed of blog posts on this site.