修改asset_index位置
This commit is contained in:
parent
7e5888e7e5
commit
d58a0d26cf
@ -1,8 +1,8 @@
|
|||||||
# 打包命令
|
# 打包命令
|
||||||
# docker buildx build -t lovelive_sif2:1.0.0 --platform=linux/amd64 .
|
# docker buildx build -t zhushenwudi/lovelive_sif2:1.0.0 --platform=linux/amd64 .
|
||||||
# 使用适用于 Linux x86 的基础映像
|
# 使用适用于 Linux x86 的基础映像
|
||||||
# 保存镜像
|
# 保存镜像
|
||||||
# docker save -o lovelive_sif2.tar lovelive_sif2:1.0.0
|
# docker save -o lovelive_sif2.tar zhushenwudi/lovelive_sif2:1.0.0
|
||||||
|
|
||||||
FROM docker.io/library/debian:latest AS builder
|
FROM docker.io/library/debian:latest AS builder
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
lovelive_sif2:
|
lovelive_sif2:
|
||||||
image: lovelive_sif2:latest
|
image: zhushenwudi/lovelive_sif2:1.0.0
|
||||||
container_name: lovelive_sif2
|
container_name: sif2
|
||||||
environment:
|
environment:
|
||||||
PORT: 8080
|
PORT: 8080
|
||||||
ASSET_PORT: 8000
|
ASSET_PORT: 8000
|
||||||
|
@ -28,4 +28,4 @@ A (mostly functioning) server for Love Live! School idol festival 2 MIRACLE LIVE
|
|||||||
|
|
||||||
**Build Rust:**
|
**Build Rust:**
|
||||||
Debug: `cargo run`
|
Debug: `cargo run`
|
||||||
Release: `cargo build --release`
|
Release: `cargo build --release --jobs=16`
|
||||||
|
@ -166,7 +166,7 @@ pub async fn asset(req: HttpRequest) -> impl Responder {
|
|||||||
if req.path() == "/" {
|
if req.path() == "/" {
|
||||||
return HttpResponse::Ok()
|
return HttpResponse::Ok()
|
||||||
.insert_header(ContentType::html())
|
.insert_header(ContentType::html())
|
||||||
.body(include_file!("webui/dist/asset_index.html"));
|
.body(include_file!("src/web/asset_index.html"));
|
||||||
}
|
}
|
||||||
|
|
||||||
let path = req.path();
|
let path = req.path();
|
||||||
|
12
src/web/asset_index.html
Normal file
12
src/web/asset_index.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>EW private server</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root">Asset Http Server</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user