Skip to content

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

License

Notifications You must be signed in to change notification settings

markcda/cc-static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Languages