Lurker News
This is more of a thought experiment, I know a multitude of ways to do this which require loads of setup, jumping through AWS hoops, etc. I'd like ideally way to deploy to a hosted service with a single command. Imagine Heroku but even easier.

Comments (487) 172 threads

Earlier comments
Strom3 replies#
Google App Engine has a very generous free quota. The setup isn't as easy as good old FTP, because you need to define your static files in a configuration file. Once the config is written the deployment is a single command though.

https://cloud.google.com/appengine

ZephyrBlu#
I think you're better off using bucket storage rather than App Engine for a static site.
modeless#
The free bandwidth quota isn't enormous, but if you put Cloudflare in front then you're good for practically unlimited free traffic. App Engine is overkill for a completely static site but it's great for something that is mostly static with one or two things that change.
nocommandline#
>>> The setup isn't as easy as good old FTP, because you need to define your static files in a configuration file.<<<

Are you referring to specifying the path to your static folder/directory in your app.yaml file? If so, that doesn't seem so difficult to me.
Yes, you're right - the deployment is a single command for something as simple as a static website until the next time you need to make changes (then you'll have to root around your terminal again) or you decide to upgrade from static to something a bit more complex. Shameless plug here - my site, https://nocommandline.com, allows you to just select and click deploy; no routing around in terminal/commandline.

fishtoaster#
A while back I wrote a tool* to make this as easy as possible for my use case: a single command to register the domain, jump through all the AWS hoops, and have a live static site with ssl at the end. I was pretty happy with it.

These days, though, I just use netlify. It's not quite one command, but it's about heroku-level easy, and it gives you a lot of little niceties (autodeploy whenever you push a specific git branch to github, ssl, etc).
* https://github.com/kkuchta/scarr

kragen#
I use

    git push
and that deploys my static site, which I think counts as "Heroku but even easier".

For this to work, in the bare repo I push to, over ssh, the post-update hook automatically pulls into a non-bare repo:

    #!/bin/sh
    set -e

    echo -n 'updating... '
    git update-server-info
    echo 'done. going to foo'
    cd /home/bar/public_html/absolute/path/of/a/non/bare/clone
    echo -n 'pulling... '
    env -u GIT_DIR git pull
    echo -n 'updating... '
    env -u GIT_DIR git update-server-info
    echo 'done.'
You can use rsync too, but I think Git is substantially better for this kind of thing.

Now of course this assumes that you already have a server machine somewhere, which you can ssh into, which is running a web server, and which is already in DNS. I've been in that situation for 26 years now, except that at first I used telnet. So I kind of take it for granted.
It sounds like maybe you're looking for a way to not run your own web server process, instead sharing the burden with other people, like a PHP shared host from 15 years ago. If that's what you want, maybe you should share the server with a few friends? Like, two to eight? That way you don't have to give up the ability to solve whatever problems come up with the server.

second--shift2 replies#
For the extra $1-2/mo, I think a $5 DigitalOcean ubuntu/similar droplet provides a ton of value, above and beyond just hosting a "static" site at the cheapest place for less. Want email too? ez. Virtual Hosts? ez. SOCKs proxy in the cloud? literally built in.
sitzkrieg#
while i agree, self hosting email is fraught with traps
alexjplant#
I got away from self-hosted mail a few years ago and haven't looked back. There are a few flexible privacy-forward options on the market now (FastMail, Proton) and I don't have to worry about configuring DMARC/DKIM/SPF, Postfix milters, Horde/Roundcube, Courier, secure connection negotiation, X.509 certificates, or any of the other headaches associated with a quasi-legacy technology like e-mail.

Load more comments