sveltekit-mittwald-spaceserver-demo Svelte Themes

Sveltekit Mittwald Spaceserver Demo

sveltekit-mittwald-spaceserver-demo

The official SvelteKit demo application, ready to be deployed via rsync/SSH to mittwald SpaceServer.

Status: 🚧 Work in progress / Broken 🚧

  • Currently rsync runs into timeouts because the many files of node_modules? See TODOs below for optimizing this, adapter-node needs these files. Alternative would be to use git pull on the server and run npm i && npm run build there. This is entirely a GitHub challenge, NOT a problem of Mittwald SpaceServer.

Setup

  1. Fork this repository
  2. Edit SSH host and path in .github/workflows/rsync-deploy.yaml
  3. Add SSH_USER and SSH_KEY (private) as Action Secret in settings

How was this created?

# https://kit.svelte.dev/
npm create svelte@latest .    
# Selected: SvelteKit demo app, JSDoc, eslint + 

# https://kit.svelte.dev/docs/adapter-node
npm i -D @sveltejs/adapter-node
  • Switched adapter-auto to adapter-node in svelte.config.js

  • Modified routes/+layout.svelte as suggested in https://github.com/sveltejs/kit/issues/9089

  • Added better detection for modified /newly deployed files (commit)

  • Created .github/workflows/rsync-deploy.yaml

TODOs

Top categories

Loading Svelte Themes