short-url/README.md

31 lines
677 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:48 +08:00
<strong>URL-Shortener 是一个基于 Next.js 的简易短链接应用</strong>
2024-11-30 09:39:25 +08:00
<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-30 10:53:22 +08:00
- Systemd
2024-11-26 12:45:06 +08:00
2024-11-30 10:53:22 +08:00
自动(推荐):
```bash
curl -sSL https://git.mei.lv/mei/short-url/raw/branch/main/auto.sh -o auto.sh && bash auto.sh
```
手动:
2024-11-30 09:39:25 +08:00
```shell
git clone https://git.mei.lv/mei/short-url.git
2024-11-30 10:53:22 +08:00
docker build -t url-shortener:latest .
2024-11-30 09:39:25 +08:00
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 10:53:22 +08:00
部署成功后,服务会在 `8567` 端口上启动
2024-11-30 09:39:25 +08:00
### 迁移
替换 `data/` 目录下的 `shorturl.db` 文件即可