3 ms·
Should be up! There are moments of brief, brief downtime when I switch binary versions. Guess you refreshed in the 5 second window when I was recompiling. I run
by ryanmjacobs 6y ago
Should be up! There are moments of brief, brief downtime when I switch binary versions. Guess you refreshed in the 5 second window when I was recompiling. I run Ctrl+c then up-arrow in tmux. Next step is to write a general supervisor the listens for SIGHUP :)
(Of course, as many people will tell me, this already exists. But sometimes, it's okay to do things for the sake of learning... come on, HN)
- jventura 6y agoIt's working now! But check the content-type for https://blog.notryan.com/ https://blog.notryan.com/. It's returning text/plain, and I see the html src in firefox instead of the rendered web page..
- ryanmjacobs 6y agoOh shoot, agh! I was messing around with rendering different content-types based on mobile/desktop -- to prevent text-wrapping on mobile phones. The index.html case slipped through my mind. I need to write some solid tests.
- giantrobot 6y agoJust serve html and use the viewport meta tag with width=device-width. Don't serve mobile devices plain text as they'll render at whatever their default viewport width is set to, 980px for Safari on iOS, which makes the text super annoying to read. Desktop browsers ignore the viewport tag and mobile browsers respect it. The page is rendered how you want everywhere for little effort.