The SvelteKit systemd Guide is a repository that provides a guide and resources for building and deploying a SvelteKit app as a systemd portable service on a server. The repository contains a GitHub workflow with build and deploy jobs, resulting in a lightweight image containing the SvelteKit app, a Node.js executable, and glibc++. The final image size is approximately 37 MB.
To use the SvelteKit systemd Guide repository, you have two options:
pnpm create svelte@latest myapp.@sveltejs/adapter-node and add it to your svelte.config.js..github directory from the repository into the root directory of your project.pnpm create svelte@latest myapp.@sveltejs/adapter-node and add it to your svelte.config.js..github directory from the repository into the root directory of your project.The SvelteKit systemd Guide provides a convenient way to build and deploy SvelteKit apps as systemd portable services. By following the provided instructions and utilizing the GitHub workflow, developers can easily package their SvelteKit app into a lightweight image and deploy it to a server. The guide also covers important topics such as environment variables, user allocation, and state directory management. Overall, this repository simplifies the deployment process of SvelteKit apps and ensures smooth integration with systemd.