Skip to content

Commit

Permalink
final cleanups after webservice setup rejig
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Jun 28, 2024
1 parent 490312b commit 1d6c9e7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/restart-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
command: >-
become sdzerobot bash -c '
cd /data/project/sdzerobot/www/js && npm restart;
cd /data/project/sdzerobot/SDZeroBot/webservice && npm restart;
cd /data/project/sdzerobot/SDZeroBot/eventstream-router && npm restart;
'
host: login.toolforge.org
Expand Down
2 changes: 1 addition & 1 deletion most-gans/web-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as express from "express";
import 'express-async-errors';
import {toolsdb} from '../db';
import {AuthManager, bot} from "../botbase";
import {TABLE} from '../../SDZeroBot/most-gans/model';
import {TABLE} from './model';

const router = express.Router();

Expand Down
2 changes: 1 addition & 1 deletion webservice/routes/articlesearch.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as express from "express";
import 'express-async-errors';
import {JSDOM} from 'jsdom';
import {bot, TextExtractor} from '../../../SDZeroBot/botbase';
import {bot, TextExtractor} from '../../botbase';
import {numericArg} from "../utils";

const router = express.Router();
Expand Down
2 changes: 1 addition & 1 deletion webservice/routes/logs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from "express";
import {exec} from "child_process";
import {mapPath} from "../../../SDZeroBot/utils";
import {mapPath} from "../../utils";
import {numericArg} from "../utils";

const router = express.Router();
Expand Down
2 changes: 1 addition & 1 deletion webservice/routes/summary.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from "express";
import 'express-async-errors';
import {bot, TextExtractor} from '../../../SDZeroBot/botbase';
import {bot, TextExtractor} from '../../botbase';

const router = express.Router();

Expand Down
6 changes: 3 additions & 3 deletions webservice/tunnels.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {closeTunnels, createLocalSSHTunnel} from "../../SDZeroBot/utils";
import {ENWIKI_DB_HOST, TOOLS_DB_HOST} from "../../SDZeroBot/db";
import {REDIS_HOST} from "../../SDZeroBot/redis";
import {closeTunnels, createLocalSSHTunnel} from "../utils";
import {ENWIKI_DB_HOST, TOOLS_DB_HOST} from "../db";
import {REDIS_HOST} from "../redis";

createLocalSSHTunnel(ENWIKI_DB_HOST);
createLocalSSHTunnel(TOOLS_DB_HOST);
Expand Down

0 comments on commit 1d6c9e7

Please sign in to comment.