Is Netlify a good service for hosting a static site? I'm curious because they will pull from Github when the site changes, so all I need to do to publish is push to Github. I'm looking for a place that won't grind to a halt under load.
I looked at Github pages and it won't work for me, so don't suggest that.
Or is there a way for my server to know when I pushed to github and pull and host it myself. I'd rather do that, but I haven't found a way.
Maybe I'm overlooking something obvious.
=> More informations about this toot | More toots from grumpygamer@mastodon.gamedev.place
@grumpygamer they can hit you with bandwidth fees that aren't so nice. cloudflare pages is an ok choice, it can do the git workflow too
=> More informations about this toot | More toots from miunau@meow.social
@grumpygamer github actions can Hugo build and rsync anywhere.
=> More informations about this toot | More toots from mms@bsd.cafe
@grumpygamer you can add a post submit hook to post to your webserver and trigger a cgi script to fetch from git - https://git-scm.com/docs/githooks
=> More informations about this toot | More toots from 1st_C_Lord@mastodon.gamedev.place
@grumpygamer I use render.com. It can connect to GitHub and I also use Hugo. Really simple, never been down once in 4 years. I almost suggested it the other day but wasn’t sure you were using GitHub.
=> More informations about this toot | More toots from richard5mith@mastodon.online
@grumpygamer it's probably easier to deploy the site from your git host through a CI job instead
=> More informations about this toot | More toots from VileLasagna@mastodon.gamedev.place
@grumpygamer Netlify has worked well for me in the past for work and personal projects.
=> More informations about this toot | More toots from paulhebert@sunny.garden
@paulhebert @grumpygamer same for me. I use Netlify with Hugo on the free tier. My blog doesn't have much traffic so I've never had a problem.
=> More informations about this toot | More toots from dmetzgar@fosstodon.org
@grumpygamer curious why it wouldn't work, but you could do the same with an s3 bucket + github action or lambda function
=> More informations about this toot | More toots from alexmorse@mastodon.social
@alexmorse I don't like AWS.
=> More informations about this toot | More toots from grumpygamer@mastodon.gamedev.place
@grumpygamer I'd probably pull the trigger with netlify and try not to get a huge amount of traffic
=> More informations about this toot | More toots from alexmorse@mastodon.social
@grumpygamer
I had that set up once but then realized I can just push my built website files with sftp. Faster results with less in between steps that try to charge you
=> More informations about this toot | More toots from baltauger@mastodon.gamedev.place
@baltauger I do that now. It's probably good enough.
=> More informations about this toot | More toots from grumpygamer@mastodon.gamedev.place
@grumpygamer
I mean I do think Netlify+GitHub makes sense if it's a website that's being updated by different people potentially at the same time. In my case (blog updated monthlyish) it added more hassle than it saved
=> More informations about this toot | More toots from baltauger@mastodon.gamedev.place
@grumpygamer you can do this super easily through Plesk, if you have that installed to your server.
Install the Git extension, give it the url of your github instance and it'll give you a webhook url. Drop that into Github and any time you push files to the repo, it'll automatically notify Plesk which in turn will pull the changes to your server.
https://www.plesk.com/kb/docs/using-remote-git-hosting-use-webhooks-for-automatic-pull/
=> More informations about this toot | More toots from dev_ric@fosstodon.org
@grumpygamer I use Netlify for a handful of static sites and have had zero issues so far. I use so little bandwidth that the free tier has been enough, so I can’t say anything about their paid options.
=> More informations about this toot | More toots from mvsde@mastodon.social
@grumpygamer I use netlify for static sites and have had problems so far! It seems great. I suspect load is easy to handle with static sites.
=> More informations about this toot | More toots from eviltrout@carpdiem.online
@grumpygamer I followed this guide quite some time ago but I do believe it is still valid regarding git hooks and hugo specifically, hope it helps
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-hugo-site-to-production-with-git-hooks-on-ubuntu-14-04
=> More informations about this toot | More toots from BinaryUnit@mastodon.online
@grumpygamer I use Netlify for this without any problems. I connected up gitlab rather than GitHub, but otherwise the same. Push to repo -> static site deploys. And fwiw, I can use my own domain.
=> More informations about this toot | More toots from davemenninger@social.coop
@grumpygamer I am also using Hugo and the GitHub CI to deploy. Check here: https://github.com/ZeroMips/zeromips-website
=> More informations about this toot | More toots from de@noc.social
@grumpygamer
github actions that publish the changed site?
=> More informations about this toot | More toots from portaloffreedom@social.linux.pizza
Depends how much YAML and shell you want to stitch the entire thing together?
A GitHub Action that triggers something on your web server to pull from GitHub?
I'm currently envisioning 50 lines of YAML (mostly boilerplate) and half a dozen lines of bash ... but likely it'll end up being more than that!
@grumpygamer
=> More informations about this toot | More toots from futuresprog@mastodon.nzoss.nz
@grumpygamer netlify has been sponsoring hosting for kodi.tv for the last years and I can't remember problems.
You could also use github webhooks to notify your server if you push.
=> More informations about this toot | More toots from razze@osna.social
@grumpygamer If you don’t mind the delay, a cron job every 5-10 minutes that pulls and builds the website might work for you.
Reacting to changes involves having some kind of webhook (like https://github.com/adnanh/webhook) with an extra shared secret
=> More informations about this toot | More toots from sirikon@mastodon.social
@grumpygamer I’ve found Vercel to be more reliable (and nicer to use) than Netlify, though I’ve also heard Cloudflare Pages can do GitHub deploys https://youtu.be/O4jV8Zz2w9I?si=lyDrUii74Tzm4Ym7
=> More informations about this toot | More toots from armstrong@mastodon.design
@grumpygamer Netlify is fine, but Cloudflare Pages does the same thing and has a better, unlimited free tier.
=> More informations about this toot | More toots from jonikorpi@mastodon.gamedev.place
@grumpygamer If your disinterest in GitHub Pages was Jekyll and/or “strict” folder/branch/repo layout, that’s no longer the case since GitHub Pages moved to GitHub Actions (I have lume site in a “monorepo” deployed to GHP right now). The documentation hasn’t kept up with the GH Actions powers
But also GH Actions with elbow grease can deploy anywhere, Netlify, Surge, your own host via sftp or whatever
=> More informations about this toot | More toots from max@smeap.com
@grumpygamer I use hugo and host its pages to a small web server at home but it could be anywhere.
I run hugo locally. I have a post-hook on git push where i render the website, optimize images, compress webpages, generate a search index and then upload those files to the webserver with rsync (a bit faster). Nothing installed on the server. Just hugo and the small tools on my local machine + rsync (with ssh).
Then each time i edit the blog, i just git add the new markdown files, git commit it and then git push. You just need to find a webserver where you can upload static files (the cheapest thing to host). As it's only static http it doesn't need anything expensive. Any hoster would work.
=> More informations about this toot | More toots from lord@pleroma.lord.re
@grumpygamer Github actions should be able to tell Hugo to do its thing
=> More informations about this toot | More toots from sbszine@dice.camp
@grumpygamer with GitHub actions, you can set up pretty much whatever you want after a push. I used to have a "build this particular static site generator based thing and then rsync it to my own server" running before I switched away from GitHub.
=> More informations about this toot | More toots from claudius@darmstadt.social
@grumpygamer github offers webhooks ( see https://github.com///settings/hooks ), which lets your server get notified when github receives a push
=> More informations about this toot | More toots from knack@aus.social
@grumpygamer Netlify, Cloudflare Pages, etc. are the easiest.
I have also successfully set up a GitHub Action to rsync
to a server automatically by storing the relevant SSH key as a “Secret” and using this action: https://github.com/shimataro/ssh-key-action
=> More informations about this toot | More toots from tylersticka@social.lol
@grumpygamer you can use github's webhooks to call a script on your server to pull, or you can write a github action to publish your site on push
=> More informations about this toot | More toots from neilzilla@mastodon.social
@grumpygamer netlify is great, that's what I use for that sort of stuff. I also dig the (static) stats, so I don't need any trackers.
That said, there's likely cheaper options if you go down the route of doing it yourself a bit more manually, like GitHub actions or whatever to auto deploy
=> More informations about this toot | More toots from zeh@mastodon.gamedev.place
@grumpygamer digital ocean has a thing (I think it’s apps) where for free (for the first 3 apps) you can connect a GitHub repo and they will publish it for you, take care of the certificate etc.
I have it listening to the public directory of my Hugo site on main branch. So every time I push an updated build on main, within a minute or 2 it’s live.
Very simple to set up and is free. The disadvantage is you need to build locally, and have the public also in your repo.
=> More informations about this toot | More toots from kfirbreger@mastodon.social
@grumpygamer https://docs.letsdisco.dev/ makes it easy to self host something like this. I recommend this amazing presentation from one of its creators: https://youtu.be/z2lP7C8VT6M?feature=shared
=> More informations about this toot | More toots from lmb@fosstodon.org
@grumpygamer Hi
Since I already had a Cloudflare free account, I'm using Pages (Cloudflare's) to do exactly what you want: I push to github and around 15, 20 seconds later, the site is refreshed.
=> More informations about this toot | More toots from gustavo@mastodon.nosotros.ong.br
@grumpygamer yeah, it's great! I host all my static stuff there. It pulls from GitHub and runs the build for me. Whole thing is super convenient.
They also now have a free-only mode, so your site will go down before they charge you anything. That's personally the tradeoof I want. That said, I've never gotten close to their free limits.
=> More informations about this toot | More toots from xavdid@mastodon.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini