* Change to new Wireguard IP * Update pull_request.yaml * Wireguard IP Pool modifications * Update express_route.js
25 lines
695 B
JavaScript
25 lines
695 B
JavaScript
#!/usr/bin/env node
|
|
const services = require("./src/start_services");
|
|
const express = require("./src/express");
|
|
|
|
async function MainRender() {
|
|
await services.StartAllServices();
|
|
await express.start();
|
|
|
|
// Docker CI/CD Test
|
|
if (process.env.timeout_pull) {
|
|
let pulltimeout = parseInt(process.env.timeout_pull);
|
|
if (isNaN(pulltimeout) || pulltimeout <= 0) {
|
|
console.log("Invalid timeout_pull value");
|
|
} else {
|
|
console.log("Exit after", pulltimeout, "Minutes");
|
|
pulltimeout = pulltimeout * 60 * 1000;
|
|
setTimeout(() => {
|
|
console.log("Pull Test timeout reached, exiting");
|
|
process.exit(0);
|
|
}, pulltimeout);
|
|
}
|
|
}
|
|
}
|
|
MainRender();
|