Skip to content

Commit 233e92e

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 2be5da2 + 953bf99 commit 233e92e

File tree

14 files changed

+47
-24
lines changed

14 files changed

+47
-24
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Language Forge
22

3+
> [!IMPORTANT]
4+
> [Language Forge is no longer developed and is in maintenance mode](https://community.software.sil.org/t/language-forge-in-maintenance-mode/10514). We will continue to support existing Language Forge projects and we encourage all users to try [FieldWorks Lite](https://lexbox.org/fw-lite).
5+
36
[Language Forge](https://languageforge.org) is an online service to collaborate on building a dictionary. Users should head on over to [languageforge.org](https://languageforge.org)
47

58
### Reporting Problems with the Language Forge Application

backup.mjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import net from "net";
88
// Expected arguments: first arg is project ID (5dbf805650b51914727e06c4) or URL (http://localhost:8080/app/lexicon/5dbf805650b51914727e06c4)
99
// Second arg is "qa" or "staging" to copy from staging, "live" or "prod" or "production" to copy from production
1010
// NOTE: You must edit the context names below if they don't match the context names you have (see `kubectl config get-contexts` output)
11+
// A MONGO_PASS env var must be available for the selected environment
1112

1213
// ===== EDIT THIS =====
1314

@@ -112,12 +113,18 @@ if (process.argv.length < 3) {
112113
process.exit(2);
113114
}
114115

116+
const mongoPass = process.env.MONGO_PASS;
117+
if (!mongoPass) {
118+
console.warn("Please provide a MongoDB password in the MONGO_PASS environment variable");
119+
process.exit(2);
120+
}
121+
115122
let projId;
116123
const arg = process.argv[2];
117124
if (URL.canParse(arg)) {
118125
const url = new URL(arg);
119126
if (url.pathname.startsWith("/app/lexicon/")) {
120-
projId = url.pathname.substring("/app/lexicon/".length);
127+
projId = url.pathname.substring("/app/lexicon/".length).split("/")[0];
121128
} else {
122129
projId = url.pathname; // Will probably fail, but worth a try
123130
}
@@ -209,7 +216,7 @@ console.warn("If that doesn't look right, hit Ctrl+C NOW");
209216
await portForwardingPromise;
210217
console.warn("Port forwarding is ready. Setting up remote Mongo connection...");
211218

212-
const remoteConnStr = `mongodb://localhost:${remoteMongoPort}`;
219+
const remoteConnStr = `mongodb://admin:${mongoPass}@localhost:${remoteMongoPort}`;
213220
remoteConn = await MongoClient.connect(remoteConnStr);
214221

215222
console.warn("Remote Mongo connection established. Fetching project record...");

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ services:
107107
- WAIT_HOSTS=db:27017
108108
- ENVIRONMENT=development
109109
- DATABASE=scriptureforge
110+
- CHORUS_HG_EXE=chg
110111
- MONGODB_CONN=mongodb://db:27017
111112
- MONGODB_AUTHSOURCE=admin
112113
- LANGUAGE_DEPOT_API_TOKEN=bogus-development-token

docker/app/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ WORKDIR /data
1010
# Copy in files needed for compilation, located in the repo root
1111
COPY package.json pnpm-lock.yaml ./
1212

13+
# Install latest corepack version to work around a bug with signatures
14+
RUN npm install -g corepack@latest
1315
RUN corepack enable
1416
RUN pnpm install
1517

docker/lfmerge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM ghcr.io/sillsdev/lfmerge:2.0.139
1+
FROM ghcr.io/sillsdev/lfmerge:2.0.141
22
# Do not add anything to this Dockerfile, it should stay empty

docker/next-app/Dockerfile.next-app

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ COPY tsconfig.json pnpm-lock.yaml package.json postcss.config.cjs svelte.config.
77
COPY src /app/src
88
COPY static /app/static
99

10+
# Install latest corepack version to work around a bug with signatures
11+
RUN npm install -g corepack@latest
1012
RUN corepack enable
1113
RUN pnpm install
1214
RUN pnpm run build

docker/next-app/dev/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ COPY tsconfig.json pnpm-lock.yaml package.json postcss.config.cjs svelte.config.
66
COPY src /app/src
77
COPY static /app/static
88

9+
# Install latest corepack version to work around a bug with signatures
10+
RUN npm install -g corepack@latest
911
RUN corepack enable
1012
RUN pnpm install
1113

docker/ui-builder/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ WORKDIR /data
55

66
COPY package.json pnpm-lock.yaml ./
77

8+
# Install latest corepack version to work around a bug with signatures
9+
RUN npm install -g corepack@latest
810
RUN corepack enable
911
RUN pnpm install
1012

next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "next-app",
33
"version": "0.0.1",
44
"type": "module",
5-
"packageManager": "pnpm@9.1.2",
5+
"packageManager": "pnpm@9.11.0",
66
"engines": {
77
"node": ">=18",
88
"pnpm": ">=9"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "Language Forge",
55
"private": true,
6-
"packageManager": "pnpm@9.1.2",
6+
"packageManager": "pnpm@9.11.0",
77
"engines": {
88
"node": ">=18",
99
"pnpm": ">=9"
@@ -51,7 +51,7 @@
5151
"zxcvbn": "^4.4.2"
5252
},
5353
"devDependencies": {
54-
"@playwright/test": "^1.29",
54+
"@playwright/test": "^1.54",
5555
"@prettier/plugin-php": "^0.20.1",
5656
"@types/angular": "1.8.1",
5757
"@types/angular-mocks": "^1.7.0",

0 commit comments

Comments
 (0)