Skip to content

tamer73/sveltekit-mittwald-spaceserver-demo

 
 

Repository files navigation

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 sveltejs/kit#9089

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

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

TODOs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.1%
  • Svelte 11.5%
  • CSS 1.2%
  • HTML 0.2%