Web Server

The static websites generated by Qgoda can be served by almost every web server available on the market.

The simplest way to deploy a Qgoda site is to publish the rendered pages to a web-server, no matter whether this web server runs in the cloud or on premise.

If you have access to a web server like nginx or Apache you just have to copy the contents of the directory _site (or whatever path you have configured in paths.site) into the document root of that web server.

The easiest way to do that is using rsync. The advantage over plain scp or ftp is that it is able to also delete files that no longer exist. A typical deployment script would look like this:

$ rsync -avz --delete _site/ user@www.example.com:/usr/share/nginx/html

The trailing slash in _site/ is important! It means that the contents of the directory _site is synched, not the directory itself. If you omit the slash, you would end up creating a directory /usr/share/nginbx/html/_site on the server which is not what you want.

This website uses cookies and similar technologies to provide certain features, enhance the user experience and deliver content that is relevant to your interests. Depending on their purpose, analysis and marketing cookies may be used in addition to technically necessary cookies. By clicking on "Agree and continue", you declare your consent to the use of the aforementioned cookies. Here you can make detailed settings or revoke your consent (in part if necessary) with effect for the future. For further information, please refer to our Privacy Policy.