Live data from Hacker News

Run Your Own Website

zacs.site

21–30 of 160 posts

Re: Run Your Own Website

#21
post #12

Any opinions on what are the best software choices for a single person to use in 2019 to build a website from scratch? I’d be willing to learn something new if I knew in 2 years, I’d be extremely productive.

0) Get a cheap virtual/dedicated machine.

1) Install docker and docker-compose

2) Setup traefik, a reverse proxy, in docker (good starting point: https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ ).

3) Run $docker container (ghost, wordpress...). I typically use one docker-compose file for each domain. "expose" is not necessary because the requests are proxied by traefik.

Here's a docker-compose sample for a website available under my-website.com:

    version: '3'
    
    services:
        web:
            container_name: my-website.com-nginx
            image: nginx
            restart: unless-stopped
            volumes:
                - ./data:/usr/share/nginx/html
            labels:
              - "traefik.docker.network=web"
              - "traefik.enable=true"
              - "traefik.basic.frontend.rule=Host:my-website.com"
              - "traefik.basic.port=80"
              - "traefik.basic.protocol=http"
    
    networks:
        default:
            external:
                name: web

There are probably more elegant ways to do this, however I found it quite effective for my setup.

Re: Run Your Own Website

#22

What I’d like to see is a geocities but with: database, server side scripting, caching, memcache, and https free for limited use with a performance and availability guarantee. What would it take to get this on a massive scale?

You mean Google Cloud and AWS?

If you're looking for a WYSIWYG website editor, you probably don't need caching/memcache, etc.

Re: Run Your Own Website

#23

What I’d like to see is a geocities but with: database, server side scripting, caching, memcache, and https free for limited use with a performance and availability guarantee. What would it take to get this on a massive scale?

Where would the funding come from?

Re: Run Your Own Website

#24
post #12

Any opinions on what are the best software choices for a single person to use in 2019 to build a website from scratch? I’d be willing to learn something new if I knew in 2 years, I’d be extremely productive.

I'm building a simple blog/project site just using Hugo. It's quite easy to get started, and is a single binary you can use to test and deploy the site with no dependencies.

I like that I'm able to design everything from the ground-up the way I want it. Also a decent selection of themes if you wanted to focus on content.

Re: Run Your Own Website

#25
post #12

Any opinions on what are the best software choices for a single person to use in 2019 to build a website from scratch? I’d be willing to learn something new if I knew in 2 years, I’d be extremely productive.

Github Pages is free and mirrors your git repository as a website.

It’s nice but only supports static content, so personally I would not count that as “running my own website”. Web hosting even container based VPS is super cheap - I would just go for that and have the extra freedom to do interesting things.

Re: Run Your Own Website

#26
post #21
post #12

Any opinions on what are the best software choices for a single person to use in 2019 to build a website from scratch? I’d be willing to learn something new if I knew in 2 years, I’d be extremely productive.

0) Get a cheap virtual/dedicated machine. 1) Install docker and docker-compose 2) Setup traefik, a reverse proxy, in docker (good starting point: https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ ). 3) Run $docker container (ghost, wordpress...). I typically use one docker-compose file for each domain. "expose" is not necessary because the requests are proxied by traefik. Here's a docker-compose sample for…

Nah, just use nearlyfreespeech.net

You get a bsd host with shell access for cheap.

Re: Run Your Own Website

#27
This type of post makes it to the front page pretty frequently, but I think the audience on hacker News vastly underestimates the difficulty of setting up a personal site for the general public. There is always the refrain of "but just use static HTML!", as if anyone even knows what that is, as if it's so easy to set up a domain and hosting, as if no one even wants a nicely designed site with images and JavaScript that's easy to maintain. Even as a technologically literate person, I find the hassle of maintaining my own static personal website far more onerous than it has to be. Platforms are not great, but they are the only way that most people will ever interact with the web.

Re: Run Your Own Website

#28

Earlier quoted context omitted.

Github Pages is free and mirrors your git repository as a website.

It’s nice but only supports static content, so personally I would not count that as “running my own website”. Web hosting even container based VPS is super cheap - I would just go for that and have the extra freedom to do interesting things.

only supports static content, so personally I would not count that as “running my own website”.

Curious: why not? Before WordPress and MoveableType websites were largely static HTML, where do you personally draw the distinction?

Re: Run Your Own Website

#29
At least own your domain name and be able to easily move your website content to whereever you want. I think for most people it's cheaper and more convenient to use a hosting service, and that's fine... as long as you can change hosting services.

I've had my personal site ( https://dwheeler.com ) since 1999. As noted in https://dwheeler.com/aboutsite.html my site has been hosted on 4 different systems, and I'm sure that I will move again at some point. Users won't notice - or care - because I can easily move to some other service.

Re: Run Your Own Website

#30
post #26
post #21

Earlier quoted context omitted.

0) Get a cheap virtual/dedicated machine. 1) Install docker and docker-compose 2) Setup traefik, a reverse proxy, in docker (good starting point: https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ ). 3) Run $docker container (ghost, wordpress...). I typically use one docker-compose file for each domain. "expose" is not necessary because the requests are proxied by traefik. Here's a docker-compose sample for…

Nah, just use nearlyfreespeech.net You get a bsd host with shell access for cheap.

WOW. You have no idea how much it makes he happy and encouraged to see that NFS is still making it. They were my first webhost, for price alone, and then overtime became my default because of the support.

Eventually moved on when my needs evolved and sort of...forgot about them until this comment.

Post reply on HN