Server - Contents

Svelte App-Deployment

new: 27-Sep-2025

Establishing the Svelte App on the Internet

Apart from having the svelte app correctly configured and running in the background as a pm2 daemon, it is necessary to have one's own domain (such as myexample.com) with a SSL Certificates (Let'sEncrypt).

Nginx to render Svelte

In Webmin->Servers->Nginx Webserver, create a Virtual Host. (Note: if the Nginx module does not appears, see for its installation the blue note in: Basic Site Setup-PtB).
For the Server Name: myexample_com.conf (the .conf subtext is necessary)

Copy & paste this text in the Nginx virtual host (modify the domain and the SSL Certificates): Svelte-nginx.txt

Note: Just a reminder that if this example Svelte app has been successful to this point under one's proper domain, the postgres database: testdb, user: root and particularly the password will require appropriate changes if the app is to be taken into full production.

Svelte Svelte-PartB
Svelte-Deploy Svelte-Extras