Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
ba270263
Commit
ba270263
authored
Dec 19, 2025
by
shaw
Browse files
docs: 调整源码编译步骤的顺序
parent
c15b419c
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
ba270263
...
...
@@ -216,20 +216,19 @@ Build and run from source code for development or customization.
git clone https://github.com/Wei-Shaw/sub2api.git
cd
sub2api
# 2. Build backend
cd
backend
go build
-o
sub2api ./cmd/server
# 3. Build frontend
cd
../frontend
# 2. Build frontend
cd
frontend
npm
install
npm run build
#
4
. Copy frontend build to backend (for embedding)
#
3
. Copy frontend build to backend (for embedding)
cp
-r
dist ../backend/internal/web/
#
5
.
Create configuration file
#
4
.
Build backend (requires frontend dist to be present)
cd
../backend
go build
-o
sub2api ./cmd/server
# 5. Create configuration file
cp
../deploy/config.example.yaml ./config.yaml
# 6. Edit configuration
...
...
README_CN.md
View file @
ba270263
...
...
@@ -216,20 +216,19 @@ docker-compose logs -f
git clone https://github.com/Wei-Shaw/sub2api.git
cd
sub2api
# 2. 编译后端
cd
backend
go build
-o
sub2api ./cmd/server
# 3. 编译前端
cd
../frontend
# 2. 编译前端
cd
frontend
npm
install
npm run build
#
4
. 复制前端构建产物到后端(用于嵌入)
#
3
. 复制前端构建产物到后端(用于嵌入)
cp
-r
dist ../backend/internal/web/
#
5
.
创建配置文件
#
4
.
编译后端(需要前端 dist 目录存在)
cd
../backend
go build
-o
sub2api ./cmd/server
# 5. 创建配置文件
cp
../deploy/config.example.yaml ./config.yaml
# 6. 编辑配置
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment