🔨 Add roadsign config

This commit is contained in:
LittleSheep 2024-10-04 00:43:59 +08:00
parent f80df60858
commit 295d2d5b95
2 changed files with 31 additions and 0 deletions

16
.roadsignrc Normal file
View File

@ -0,0 +1,16 @@
{
"sync": {
"region": "capital",
"configPath": "roadsign.toml"
},
"deployments": [
{
"region": "capital",
"site": "capital-app",
"path": ".output",
"postDeploy": {
"command": "apk add nodejs npm; cd server && npm install --platform=linux --arch=x64 sharp"
}
}
]
}

15
roadsign.toml Normal file
View File

@ -0,0 +1,15 @@
id = "capital"
[[locations]]
id = "capital"
hosts = ["solsynth.dev", "www.solsynth.dev"]
paths = ["/"]
[[locations.destinations]]
id = "capital-destination"
uri = "http://127.0.0.1:3000"
[[applications]]
id = "capital-app"
workdir = "/workdir/capital"
command = ["node", "server/index.mjs"]
environment = []