init
This commit is contained in:
25
server/release/README.txt
Normal file
25
server/release/README.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
JNote 后端服务部署说明
|
||||
=====================
|
||||
|
||||
目录结构:
|
||||
├── linux/ # Linux 服务器部署包
|
||||
│ ├── jnote-api # Linux 可执行二进制文件
|
||||
│ ├── start.sh # Linux 原生启动脚本
|
||||
│ └── .env # 环境配置
|
||||
│
|
||||
└── windows/ # Windows 服务器部署包
|
||||
├── jnote-api.exe # Windows 可执行程序
|
||||
├── start.bat # Windows 原生启动脚本
|
||||
└── .env # 环境配置
|
||||
|
||||
部署步骤:
|
||||
|
||||
【Linux 服务器】
|
||||
1. 上传 linux/ 目录到服务器
|
||||
2. 修改 .env 中的数据库配置
|
||||
3. 直接运行: ./start.sh
|
||||
|
||||
【Windows 服务器】
|
||||
1. 上传 windows/ 目录到服务器
|
||||
2. 修改 .env 中的数据库配置
|
||||
3. 双击运行 start.bat 即可
|
||||
17
server/release/linux/.env
Normal file
17
server/release/linux/.env
Normal file
@@ -0,0 +1,17 @@
|
||||
# 数据库配置
|
||||
DB_HOST=43.156.91.115
|
||||
DB_PORT=53306
|
||||
DB_USER=root
|
||||
# DB_PASSWORD=mysql_sX4mrh
|
||||
DB_PASSWORD=mariadb_hJbME5
|
||||
DB_NAME=jnote
|
||||
|
||||
# RUSTFS 对象存储配置
|
||||
RUSTFS_ENDPOINT=http://43.156.91.115:9001
|
||||
RUSTFS_REGION=us-east-1
|
||||
RUSTFS_BUCKET=setting
|
||||
RUSTFS_ACCESS_KEY=rustfsadmin
|
||||
RUSTFS_SECRET_KEY=rustfsadmin
|
||||
|
||||
# 服务器配置
|
||||
PORT=4501
|
||||
17
server/release/linux/.env.example
Normal file
17
server/release/linux/.env.example
Normal file
@@ -0,0 +1,17 @@
|
||||
# 数据库配置
|
||||
DB_HOST=43.156.91.115
|
||||
DB_PORT=53306
|
||||
DB_USER=root
|
||||
# DB_PASSWORD=mysql_sX4mrh
|
||||
DB_PASSWORD=mariadb_hJbME5
|
||||
DB_NAME=jnote
|
||||
|
||||
# RUSTFS 对象存储配置
|
||||
RUSTFS_ENDPOINT=http://43.156.91.115:9001
|
||||
RUSTFS_REGION=us-east-1
|
||||
RUSTFS_BUCKET=setting
|
||||
RUSTFS_ACCESS_KEY=rustfsadmin
|
||||
RUSTFS_SECRET_KEY=rustfsadmin
|
||||
|
||||
# 服务器配置
|
||||
PORT=4501
|
||||
BIN
server/release/linux/jnote-api
Normal file
BIN
server/release/linux/jnote-api
Normal file
Binary file not shown.
4
server/release/linux/start.sh
Normal file
4
server/release/linux/start.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
# JNote 后端服务启动脚本
|
||||
cd "$(dirname "$0")"
|
||||
./jnote-api
|
||||
17
server/release/windows/.env
Normal file
17
server/release/windows/.env
Normal file
@@ -0,0 +1,17 @@
|
||||
# 数据库配置
|
||||
DB_HOST=43.156.91.115
|
||||
DB_PORT=53306
|
||||
DB_USER=root
|
||||
# DB_PASSWORD=mysql_sX4mrh
|
||||
DB_PASSWORD=mariadb_hJbME5
|
||||
DB_NAME=jnote
|
||||
|
||||
# RUSTFS 对象存储配置
|
||||
RUSTFS_ENDPOINT=http://43.156.91.115:9001
|
||||
RUSTFS_REGION=us-east-1
|
||||
RUSTFS_BUCKET=setting
|
||||
RUSTFS_ACCESS_KEY=rustfsadmin
|
||||
RUSTFS_SECRET_KEY=rustfsadmin
|
||||
|
||||
# 服务器配置
|
||||
PORT=4501
|
||||
17
server/release/windows/.env.example
Normal file
17
server/release/windows/.env.example
Normal file
@@ -0,0 +1,17 @@
|
||||
# 数据库配置
|
||||
DB_HOST=43.156.91.115
|
||||
DB_PORT=53306
|
||||
DB_USER=root
|
||||
# DB_PASSWORD=mysql_sX4mrh
|
||||
DB_PASSWORD=mariadb_hJbME5
|
||||
DB_NAME=jnote
|
||||
|
||||
# RUSTFS 对象存储配置
|
||||
RUSTFS_ENDPOINT=http://43.156.91.115:9001
|
||||
RUSTFS_REGION=us-east-1
|
||||
RUSTFS_BUCKET=setting
|
||||
RUSTFS_ACCESS_KEY=rustfsadmin
|
||||
RUSTFS_SECRET_KEY=rustfsadmin
|
||||
|
||||
# 服务器配置
|
||||
PORT=4501
|
||||
BIN
server/release/windows/jnote-api.exe
Normal file
BIN
server/release/windows/jnote-api.exe
Normal file
Binary file not shown.
5
server/release/windows/start.bat
Normal file
5
server/release/windows/start.bat
Normal file
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
:: JNote 后端服务启动脚本
|
||||
cd /d "%~dp0"
|
||||
jnote-api.exe
|
||||
pause
|
||||
Reference in New Issue
Block a user