Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 844 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 844 Bytes

cc-static-server

Simple static server. Features:

  • running on top of cc-server-kit (see configuration example)
  • 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. You can build server with:

deployer build

Or, alternatively, just build with cargo:

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.