mirror of https://github.com/jkjoy/hugoblog.git
50 lines
720 B
Markdown
50 lines
720 B
Markdown
---
|
|
title: "fly.io部署typecho"
|
|
slug: "405"
|
|
date: 2023-12-12T03:31:35.000Z
|
|
categories:
|
|
- 分享
|
|
tags:
|
|
- 部署
|
|
- typecho
|
|
---
|
|
|
|
## 示例
|
|
本站使用fly.io部署
|
|
## fly.toml
|
|
```
|
|
app = "avnvu"
|
|
primary_region = "hkg"
|
|
|
|
[build]
|
|
image = "joyqi/typecho:nightly-php7.4-apache"
|
|
|
|
[env]
|
|
TIMEZONE = "Asia/Shanghai"
|
|
TYPECHO_SITE_URL = "https://www.avnvu.com"
|
|
|
|
[[mounts]]
|
|
source = "typecho_data"
|
|
destination = "/app/usr"
|
|
|
|
[http_service]
|
|
internal_port = 80
|
|
force_https = true
|
|
auto_stop_machines = false
|
|
auto_start_machines = true
|
|
min_machines_running = 1
|
|
processes = ["app"]
|
|
```
|
|
## 赋权
|
|
如果安装过程需要赋权
|
|
则使用命令
|
|
```
|
|
fly ssh console
|
|
```
|
|
登录容器执行
|
|
```
|
|
chmod -R 777 usr
|
|
```
|
|
即可
|
|
|