Production Site Hosting

go-live is also intended to be a simple replacement to Github-pages. Use this on an internet-facing server to quickly host a set of HTML files.

Running a Production Server

go-live does not support HTTPS yet, but it is on the roadmap! We recommend Cloudflare for now to handle SSL.
Serving a site in production is trivial with go-live. This process is very efficient and can be used with small and inexpensive compute instances. An example of serving a production site is:
go-live --dir production-site/ --port 80 --quiet
Running two servers side by side with Tmux. Note the different ports.
To start a persistent session with tmux. Tmux means when you close your SSH session your server won't shut down. Learn about tmux:
$ tmux
$ go-live --dir production-site/ --port 80 --quiet
You can start nginx on the same host as go-live and use it to proxy connections. Here is an example nginx.conf (located in /etc/nginx/nginx.conf) for on Port 9000. The go-live process runs on Port 9000, and users connect through nginx on Port 80.
events {
worker_connections 4096; ## Default: 1024
http {
server {
listen 80;
listen [::]:80;
location ^~ /{
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
Cloudflare can provide caching and DDOS protection for your go-live server. We recommend setting up Cloudflare as the DNS provider and then proxying requests to your go-live server IP address on Port 80. Cloudflare can also provide HTTPS support for users who connect through it.