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.
- Host: GitHub
- URL: https://github.com/markcda/cc-static-server
- Owner: markcda
- License: mit
- Created: 2025-01-21T08:06:34.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-02T22:41:23.000Z (over 1 year ago)
- Last Synced: 2025-03-02T23:26:10.181Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.