An open API service indexing awesome lists of open source software.

https://github.com/markcda/cc-static-server

Simple static server for any `dist` folder you provide.
https://github.com/markcda/cc-static-server

Last synced: over 1 year ago
JSON representation

Simple static server for any `dist` folder you provide.

Awesome Lists containing this project

README

          

# cc-static-server

Simple static server. Features:

- running on top of `cc-server-kit` (see [configuration example](https://github.com/markcda/cc-server-kit?tab=readme-ov-file#4-quick-start-steps))
- serves all your files from `dist` or `/usr/local/frontend-dist/` folder
- when receives any request other than `/`, it returns `index.html`, excluding files

## Build

This project is supporting [Deployer](https://github.com/impulse-sw/deployer). You can build server with:

```bash
deployer build
```

Or, alternatively, just build with `cargo`:

```bash
cargo build --release
```

## Usage

1. Place your files inside `dist` folder.
2. Place `cc-static-server` executable near `dist` folder.
3. Start `./cc-static-server`.

> [!NOTE]
> There is no need to specify working dir, static server must work with distribution files placed nearly.