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 returnsindex.html
, excluding files
This project is supporting Deployer. You can build server with:
deployer build
Or, alternatively, just build with cargo
:
cargo build --release
- Place your files inside
dist
folder. - Place
cc-static-server
executable neardist
folder. - Start
./cc-static-server
.
Note
There is no need to specify working dir, static server must work with distribution files placed nearly.