- init.rs を完成させる
- 404 ページのデザインを考える
- config.json を読み込んでいい感じにする
- run
npm install
- create a
config.json
file with the following content:
{
"port": 3000,
"host": "localhost",
"url": "http://localhost:3000"
}
or run a npm run config
command to create a config file with rust script.
if your system is windows, you can run npm run config:win
command to create a config file with rust script.
- run
npm run build
- setup nginx or apache to serve the
public
folder example nginx config:
server {
listen 80;
server_name example.com;
root /var/www/404/public;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}