dokku_test_deploy/README.md

14 lines
941 B
Markdown
Raw Normal View History

2023-02-21 12:21:25 +00:00
# Deploy a Svelte app on Dokku with DroneCI
2023-02-21 00:06:02 +00:00
2023-02-21 03:16:43 +00:00
[![Build Status](https://droneci.fnukhosting.net/api/badges/dcowan/dokku_test_deploy/status.svg?ref=refs/heads/main)](https://droneci.fnukhosting.net/dcowan/dokku_test_deploy)
2023-02-21 12:21:25 +00:00
This repository is a test for deploying a Svelte app on [Dokku](https://dokku.com/) with DroneCI.
2023-02-21 00:06:02 +00:00
2023-02-21 12:21:25 +00:00
This is a simple Svelte+Vite template app (created with `npm init vite`). The only files that have been changed are:
* `README.md`
* `.drone.yml`
* `.static`
2023-02-21 00:06:02 +00:00
2023-02-21 12:21:25 +00:00
The pipeline connects to a [self-hosted Dokku server](https://dokku.com/docs/getting-started/installation/) over `ssh` via a local jump host. It configures the new app via the `dokku` CLI tool, deploys the app to Dokku via `git`, then requests a LetsEncrypt SSL certificate for the site.
2023-02-21 00:06:02 +00:00
2023-02-21 12:21:25 +00:00
The same pipeline should work with no modification for any static site generator which uses `npm build` to build the site. Dokku will look for the compiled site in `dist/`.