Files

54 lines
1.5 KiB
Go
Raw Permalink Normal View History

2024-07-23 14:48:37 +08:00
package constant
const (
ResourceLocal = "local"
ResourceAppstore = "appstore"
2024-10-10 18:12:05 +08:00
RuntimePHP = "php"
RuntimeNode = "node"
RuntimeJava = "java"
RuntimeGo = "go"
RuntimePython = "python"
2024-12-03 10:12:02 +08:00
RuntimeDotNet = "dotnet"
2024-07-23 14:48:37 +08:00
RuntimeProxyUnix = "unix"
RuntimeProxyTcp = "tcp"
RuntimeUp = "up"
RuntimeDown = "down"
RuntimeRestart = "restart"
RuntimeInstall = "install"
RuntimeUninstall = "uninstall"
RuntimeUpdate = "update"
RuntimeNpm = "npm"
RuntimeYarn = "yarn"
)
var GoDefaultVolumes = map[string]string{
"${CODE_DIR}": "/app",
"./run.sh": "/run.sh",
"./.env": "/.env",
"./mod": "/go/pkg/mod",
}
var RuntimeDefaultVolumes = map[string]string{
2024-10-10 18:12:05 +08:00
"${CODE_DIR}": "/app",
"./run.sh": "/run.sh",
"./.env": "/.env",
}
2025-06-05 16:18:52 +08:00
var PHPDefaultVolumes = map[string]string{
"${PANEL_WEBSITE_DIR}": "/www/",
2025-06-27 16:56:13 +08:00
"./conf/php.ini": "/usr/local/etc/php/php.ini",
2025-06-05 16:18:52 +08:00
"./conf/conf.d": "/usr/local/etc/php/conf.d",
2025-06-27 16:56:13 +08:00
"./conf/php-fpm.conf": "/usr/local/etc/php-fpm.conf",
2025-06-05 16:18:52 +08:00
"./log": "/var/log/php",
2025-06-27 16:56:13 +08:00
"./extensions": "/usr/local/lib/php/extensions",
2025-06-05 16:18:52 +08:00
"./supervisor/supervisord.conf": "/etc/supervisord.conf",
"./supervisor/supervisor.d/php-fpm.ini": "/etc/supervisor.d/php-fpm.ini",
"./supervisor/supervisor.d": "/etc/supervisor.d",
"./supervisor/log": "/var/log/supervisor",
"./composer": "/tmp/composer",
}