short-url/README.md

24 lines
470 B
Markdown
Raw Normal View History

2024-11-30 09:39:25 +08:00
<h1 align="center">URL-Shortener</h1>
2024-11-26 12:45:06 +08:00
2024-11-30 09:39:25 +08:00
<strong>NezhaDash 是一个基于 Next.js 的简易短链接应用</strong>
<br>
2024-11-26 12:45:06 +08:00
2024-11-30 09:39:25 +08:00
</div>
2024-11-26 12:45:06 +08:00
2024-11-30 09:39:25 +08:00
### 部署
支持部署环境:
2024-11-26 12:45:06 +08:00
2024-11-30 09:39:25 +08:00
- Docker
2024-11-26 12:45:06 +08:00
2024-11-30 09:39:25 +08:00
部署方式:
```shell
git clone https://git.mei.lv/mei/short-url.git
docker build .
mkdir /opt/url-shortener
cd /opt/url-shortener
wget https://git.mei.lv/mei/short-url/raw/branch/main/docker-compose.yaml
docker compose up -d
```
2024-11-26 12:45:06 +08:00
2024-11-30 09:39:25 +08:00
### 迁移
替换 `data/` 目录下的 `shorturl.db` 文件即可