mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-14 04:50:50 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60f8286825 | ||
|
|
7deab5d18e | ||
|
|
4fd89ab155 |
@@ -25,7 +25,7 @@ export class GrpcServerService {
|
|||||||
const grpcPort = config.grpcPort;
|
const grpcPort = config.grpcPort;
|
||||||
const bindAsync = promisify(this.server.bindAsync).bind(this.server);
|
const bindAsync = promisify(this.server.bindAsync).bind(this.server);
|
||||||
await bindAsync(
|
await bindAsync(
|
||||||
`[::]:${grpcPort}`,
|
`0.0.0.0:${grpcPort}`,
|
||||||
ServerCredentials.createInsecure(),
|
ServerCredentials.createInsecure(),
|
||||||
);
|
);
|
||||||
Logger.debug(`✌️ gRPC service started successfully`);
|
Logger.debug(`✌️ gRPC service started successfully`);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export class HttpServerService {
|
|||||||
async initialize(expressApp: express.Application, port: number) {
|
async initialize(expressApp: express.Application, port: number) {
|
||||||
try {
|
try {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.server = expressApp.listen(port, '::', () => {
|
this.server = expressApp.listen(port, '0.0.0.0', () => {
|
||||||
Logger.debug(`✌️ HTTP service started successfully`);
|
Logger.debug(`✌️ HTTP service started successfully`);
|
||||||
metricsService.record('http_service_start', 1, {
|
metricsService.record('http_service_start', 1, {
|
||||||
port: port.toString(),
|
port: port.toString(),
|
||||||
|
|||||||
@@ -258,8 +258,16 @@ git_clone_scripts() {
|
|||||||
|
|
||||||
set_proxy "$proxy"
|
set_proxy "$proxy"
|
||||||
|
|
||||||
|
# Set TMPDIR to /tmp to avoid "unable to get random bytes" error in some Docker environments
|
||||||
|
local original_tmpdir="${TMPDIR:-}"
|
||||||
|
export TMPDIR=/tmp
|
||||||
git clone -q --depth=1 $part_cmd $url $dir
|
git clone -q --depth=1 $part_cmd $url $dir
|
||||||
exit_status=$?
|
exit_status=$?
|
||||||
|
if [[ -n "$original_tmpdir" ]]; then
|
||||||
|
export TMPDIR="$original_tmpdir"
|
||||||
|
else
|
||||||
|
unset TMPDIR
|
||||||
|
fi
|
||||||
|
|
||||||
unset_proxy
|
unset_proxy
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user