Record redis vars from local values
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.",
|
"description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.",
|
||||||
"website": "https://affine.pro",
|
"website": "https://affine.pro",
|
||||||
"contactEmail": "support@affine.pro",
|
"contactEmail": "support@affine.pro",
|
||||||
"version": "0.1.8",
|
"version": "0.1.9",
|
||||||
"changelog": "Initial Cloudron packaging",
|
"changelog": "Initial Cloudron packaging",
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"minBoxVersion": "7.0.0",
|
"minBoxVersion": "7.0.0",
|
||||||
|
|||||||
16
start.sh
16
start.sh
@@ -64,7 +64,7 @@ configure_database() {
|
|||||||
db_url="postgresql://${db_url#postgres://}"
|
db_url="postgresql://${db_url#postgres://}"
|
||||||
fi
|
fi
|
||||||
export DATABASE_URL="$db_url"
|
export DATABASE_URL="$db_url"
|
||||||
record_env_var DATABASE_URL "$DATABASE_URL"
|
record_env_var DATABASE_URL "$db_url"
|
||||||
log "Configured PostgreSQL endpoint"
|
log "Configured PostgreSQL endpoint"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,13 +94,13 @@ PY
|
|||||||
export REDIS_SERVER_USERNAME="$username"
|
export REDIS_SERVER_USERNAME="$username"
|
||||||
export REDIS_URL="$CLOUDRON_REDIS_URL"
|
export REDIS_URL="$CLOUDRON_REDIS_URL"
|
||||||
export REDIS_SERVER_URL="$CLOUDRON_REDIS_URL"
|
export REDIS_SERVER_URL="$CLOUDRON_REDIS_URL"
|
||||||
record_env_var REDIS_SERVER_HOST "$REDIS_SERVER_HOST"
|
record_env_var REDIS_SERVER_HOST "$host"
|
||||||
record_env_var REDIS_SERVER_PORT "$REDIS_SERVER_PORT"
|
record_env_var REDIS_SERVER_PORT "$port"
|
||||||
record_env_var REDIS_SERVER_PASSWORD "$REDIS_SERVER_PASSWORD"
|
record_env_var REDIS_SERVER_PASSWORD "$password"
|
||||||
record_env_var REDIS_SERVER_DATABASE "$REDIS_SERVER_DATABASE"
|
record_env_var REDIS_SERVER_DATABASE "$db"
|
||||||
record_env_var REDIS_SERVER_USERNAME "$REDIS_SERVER_USERNAME"
|
record_env_var REDIS_SERVER_USERNAME "$username"
|
||||||
record_env_var REDIS_URL "$REDIS_URL"
|
record_env_var REDIS_URL "$CLOUDRON_REDIS_URL"
|
||||||
record_env_var REDIS_SERVER_URL "$REDIS_SERVER_URL"
|
record_env_var REDIS_SERVER_URL "$CLOUDRON_REDIS_URL"
|
||||||
log "Configured Redis endpoint"
|
log "Configured Redis endpoint"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user