// clone to your folder
$ git clone https://github.com/DarkPage/yr-static.git
// get in this project
$ cd yr-static
// create a folder to save your static files
$ mkdir build
// copy your file to build folder
$ node app.js
// Server start at port 3001
$ npm i && npm run start
// > [email protected] start /Users/zhourongxian/Documents/PrivateProjects/yr-static
// > node app.js
// Server start at port 3001
// please install Docker first.
// build an image
$ docker build -t [imageName]:[tagName] .
// start
$ docker run -d -p 3000:3000 --name [containerName] [imageId]
router.get(/[ablum|book|me|scene|notice|rent|about|ablum]/, async (ctx) => {
await send(ctx, 'index.html', { root: __dirname + '/build' });
});