mirror of
https://github.com/kou029w/quot.git
synced 2025-01-31 14:28:06 +00:00
Compare commits
3 commits
787f97dcd7
...
23e6bf327b
Author | SHA1 | Date | |
---|---|---|---|
23e6bf327b | |||
f10b53202c | |||
dc559a70cb |
5 changed files with 10 additions and 8 deletions
|
@ -6,7 +6,7 @@ COPY --from=api /bin/postgrest /usr/bin/
|
|||
COPY --from=dbmate /usr/local/bin/dbmate /usr/bin/
|
||||
COPY ./db ./db
|
||||
COPY ./app ./app
|
||||
RUN npm --prefix app ci --production
|
||||
RUN npm --prefix app ci --omit=dev
|
||||
COPY ./docker-entrypoint.sh /
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
COPY ./supervisord.conf /
|
||||
|
|
|
@ -9,7 +9,7 @@ declare module "fastify" {
|
|||
}
|
||||
|
||||
export function App(config: Config = defaultConfig()): FastifyInstance {
|
||||
const app = fastify({ logger: true });
|
||||
const app = fastify({ logger: { stream: process.stderr, level: "warn" } });
|
||||
app.decorate("config", config).register(routes);
|
||||
return app;
|
||||
}
|
||||
|
|
8
app/package-lock.json
generated
8
app/package-lock.json
generated
|
@ -12,6 +12,7 @@
|
|||
"@fastify/http-proxy": "^8.2.2",
|
||||
"@lexical/history": "^0.4.1",
|
||||
"@lexical/plain-text": "^0.4.1",
|
||||
"@tsconfig/node18-strictest-esm": "^1.0.1",
|
||||
"esbuild": "^0.15.7",
|
||||
"esbuild-register": "^3.3.3",
|
||||
"fastify": "^4.5.3",
|
||||
|
@ -21,7 +22,6 @@
|
|||
"solid-js": "^1.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tsconfig/node18-strictest-esm": "^1.0.1",
|
||||
"@types/node": "^18.7.15",
|
||||
"typescript": "^4.8.2"
|
||||
},
|
||||
|
@ -195,8 +195,7 @@
|
|||
"node_modules/@tsconfig/node18-strictest-esm": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@tsconfig/node18-strictest-esm/-/node18-strictest-esm-1.0.1.tgz",
|
||||
"integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w==",
|
||||
"dev": true
|
||||
"integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w=="
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "18.7.15",
|
||||
|
@ -1241,8 +1240,7 @@
|
|||
"@tsconfig/node18-strictest-esm": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@tsconfig/node18-strictest-esm/-/node18-strictest-esm-1.0.1.tgz",
|
||||
"integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w==",
|
||||
"dev": true
|
||||
"integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w=="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "18.7.15",
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"@fastify/http-proxy": "^8.2.2",
|
||||
"@lexical/history": "^0.4.1",
|
||||
"@lexical/plain-text": "^0.4.1",
|
||||
"@tsconfig/node18-strictest-esm": "^1.0.1",
|
||||
"esbuild": "^0.15.7",
|
||||
"esbuild-register": "^3.3.3",
|
||||
"fastify": "^4.5.3",
|
||||
|
@ -24,7 +25,6 @@
|
|||
"solid-js": "^1.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tsconfig/node18-strictest-esm": "^1.0.1",
|
||||
"@types/node": "^18.7.15",
|
||||
"typescript": "^4.8.2"
|
||||
}
|
||||
|
|
|
@ -4,6 +4,10 @@ user = root
|
|||
|
||||
[program:app]
|
||||
command = npm --prefix app start
|
||||
stderr_logfile = /dev/stderr
|
||||
stderr_logfile_maxbytes = 0
|
||||
|
||||
[program:api]
|
||||
command = postgrest
|
||||
stderr_logfile = /dev/stderr
|
||||
stderr_logfile_maxbytes = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue