tangled
alpha
login
or
join now
vicwalker.dev.br
/
pds-mirror
0
fork
atom
Mirror from bluesky-social/pds
0
fork
atom
overview
issues
pulls
pipelines
update pds version, set version config, log on startup
Devin Ivy
2 years ago
3b8fc086
152c74da
+11
-5
3 changed files
expand all
collapse all
unified
split
service
index.js
package.json
yarn.lock
+6
service/index.js
···
5
5
envToCfg,
6
6
envToSecrets,
7
7
readEnv,
8
8
+
httpLogger,
8
9
} = require("@atproto/pds");
10
10
+
const pkg = require("@atproto/pds/package.json");
9
11
10
12
const main = async () => {
11
13
const env = readEnv();
14
14
+
env.version ||= pkg.version;
12
15
const cfg = envToCfg(env);
13
16
const secrets = envToSecrets(env);
14
17
const pds = await PDS.create(cfg, secrets);
···
24
27
await pds.ctx.db.migrateToLatestOrThrow();
25
28
}
26
29
await pds.start();
30
30
+
httpLogger.info("pds is running");
27
31
// Graceful shutdown (see also https://aws.amazon.com/blogs/containers/graceful-shutdowns-with-ecs/)
28
32
process.on("SIGTERM", async () => {
33
33
+
httpLogger.info("pds is stopping");
29
34
await pds.destroy();
35
35
+
httpLogger.info("pds is stopped");
30
36
});
31
37
};
32
38
+1
-1
service/package.json
···
6
6
"main": "index.js",
7
7
"license": "MIT",
8
8
"dependencies": {
9
9
-
"@atproto/pds": "0.2.0-beta.0"
9
9
+
"@atproto/pds": "0.2.0-beta.1"
10
10
}
11
11
}
+4
-4
service/yarn.lock
···
123
123
resolved "https://registry.yarnpkg.com/@atproto/nsid/-/nsid-0.0.1.tgz#0cdc00cefe8f0b1385f352b9f57b3ad37fff09a4"
124
124
integrity sha512-t5M6/CzWBVYoBbIvfKDpqPj/+ZmyoK9ydZSStcTXosJ27XXwOPhz0VDUGKK2SM9G5Y7TPes8S5KTAU0UdVYFCw==
125
125
126
126
-
"@atproto/pds@0.2.0-beta.0":
127
127
-
version "0.2.0-beta.0"
128
128
-
resolved "https://registry.yarnpkg.com/@atproto/pds/-/pds-0.2.0-beta.0.tgz#cc1be5b891fd049e222c312cbfb31d55c04f1a58"
129
129
-
integrity sha512-XORypRnEUrsfUqp1P+2yU3A9+aBjxYOTY1akv5T4FnGiElvjrliuaT0Wk3vt//wCBxb0b18ByUMwaDMoZ/6N6A==
126
126
+
"@atproto/pds@0.2.0-beta.1":
127
127
+
version "0.2.0-beta.1"
128
128
+
resolved "https://registry.yarnpkg.com/@atproto/pds/-/pds-0.2.0-beta.1.tgz#7346f5bbbf6d3da1b42adfacdd4c705731978de0"
129
129
+
integrity sha512-FXdvnQlhV2FK6KU/GX24k3OJB6Iru1Wpx7laJz3JfTR/qCx2qIOfyl04Oc9IuQX50trg+8uvAEeTjyOFxvSBYw==
130
130
dependencies:
131
131
"@atproto/api" "*"
132
132
"@atproto/aws" "*"