fix(config): add production environment and update database path in configuration
This commit is contained in:
@@ -38,15 +38,17 @@ msg_info "Configuring Application"
|
||||
cat <<EOF >/etc/puter/config.json
|
||||
{
|
||||
"config_name": "proxmox",
|
||||
"env": "prod",
|
||||
"domain": "${LOCAL_IP}.nip.io",
|
||||
"protocol": "http",
|
||||
"http_port": 4100,
|
||||
"port": 4100,
|
||||
"allow_nipio_domains": true,
|
||||
"services": {
|
||||
"database": {
|
||||
"engine": "sqlite",
|
||||
"path": "puter-database.sqlite"
|
||||
}
|
||||
"database": {
|
||||
"engine": "sqlite",
|
||||
"path": "/var/puter/puter-database.sqlite"
|
||||
},
|
||||
"providers": {
|
||||
"ollama": { "enabled": false }
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
@@ -62,8 +62,8 @@ chmod 644 /opt/slink/services/api/config/jwt/private.pem
|
||||
touch /opt/slink/services/api/var/data/slink_store.db
|
||||
touch /opt/slink/services/api/var/data/slink.db
|
||||
$STD php bin/console doctrine:migrations:migrate --no-interaction --em=read_model
|
||||
$STD php bin/console messenger:setup-transports --no-interaction
|
||||
$STD php bin/console doctrine:schema:update --force --em=event_store
|
||||
$STD php bin/console messenger:setup-transports --no-interaction
|
||||
$STD php bin/console slink:admin:init --no-interaction
|
||||
$STD php bin/console cache:warm --no-optional-warmers
|
||||
msg_ok "Set up API"
|
||||
|
||||
Reference in New Issue
Block a user