Skip to content

mandrasch/sveltekit-mittwald-spaceserver-demo

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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