1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-31 14:28:06 +00:00

Compare commits

..

3 commits

Author SHA1 Message Date
23e6bf327b use --omit=dev 2022-09-07 07:35:49 +09:00
f10b53202c fixed warning 2022-09-07 05:52:53 +09:00
dc559a70cb print stderr 2022-09-07 05:51:57 +09:00
5 changed files with 10 additions and 8 deletions

View file

@ -6,7 +6,7 @@ COPY --from=api /bin/postgrest /usr/bin/
COPY --from=dbmate /usr/local/bin/dbmate /usr/bin/ COPY --from=dbmate /usr/local/bin/dbmate /usr/bin/
COPY ./db ./db COPY ./db ./db
COPY ./app ./app COPY ./app ./app
RUN npm --prefix app ci --production RUN npm --prefix app ci --omit=dev
COPY ./docker-entrypoint.sh / COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]
COPY ./supervisord.conf / COPY ./supervisord.conf /

View file

@ -9,7 +9,7 @@ declare module "fastify" {
} }
export function App(config: Config = defaultConfig()): FastifyInstance { 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); app.decorate("config", config).register(routes);
return app; return app;
} }

8
app/package-lock.json generated
View file

@ -12,6 +12,7 @@
"@fastify/http-proxy": "^8.2.2", "@fastify/http-proxy": "^8.2.2",
"@lexical/history": "^0.4.1", "@lexical/history": "^0.4.1",
"@lexical/plain-text": "^0.4.1", "@lexical/plain-text": "^0.4.1",
"@tsconfig/node18-strictest-esm": "^1.0.1",
"esbuild": "^0.15.7", "esbuild": "^0.15.7",
"esbuild-register": "^3.3.3", "esbuild-register": "^3.3.3",
"fastify": "^4.5.3", "fastify": "^4.5.3",
@ -21,7 +22,6 @@
"solid-js": "^1.5.4" "solid-js": "^1.5.4"
}, },
"devDependencies": { "devDependencies": {
"@tsconfig/node18-strictest-esm": "^1.0.1",
"@types/node": "^18.7.15", "@types/node": "^18.7.15",
"typescript": "^4.8.2" "typescript": "^4.8.2"
}, },
@ -195,8 +195,7 @@
"node_modules/@tsconfig/node18-strictest-esm": { "node_modules/@tsconfig/node18-strictest-esm": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/@tsconfig/node18-strictest-esm/-/node18-strictest-esm-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@tsconfig/node18-strictest-esm/-/node18-strictest-esm-1.0.1.tgz",
"integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w==", "integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w=="
"dev": true
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "18.7.15", "version": "18.7.15",
@ -1241,8 +1240,7 @@
"@tsconfig/node18-strictest-esm": { "@tsconfig/node18-strictest-esm": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/@tsconfig/node18-strictest-esm/-/node18-strictest-esm-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@tsconfig/node18-strictest-esm/-/node18-strictest-esm-1.0.1.tgz",
"integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w==", "integrity": "sha512-cHzmAqw7CMbyqROWeBgVhard3F2V6zxOSJnQ4E6SJWruXD5ypuP9/QKekwBdfXQ4oUTaizIICKIwb+v3v33t0w=="
"dev": true
}, },
"@types/node": { "@types/node": {
"version": "18.7.15", "version": "18.7.15",

View file

@ -15,6 +15,7 @@
"@fastify/http-proxy": "^8.2.2", "@fastify/http-proxy": "^8.2.2",
"@lexical/history": "^0.4.1", "@lexical/history": "^0.4.1",
"@lexical/plain-text": "^0.4.1", "@lexical/plain-text": "^0.4.1",
"@tsconfig/node18-strictest-esm": "^1.0.1",
"esbuild": "^0.15.7", "esbuild": "^0.15.7",
"esbuild-register": "^3.3.3", "esbuild-register": "^3.3.3",
"fastify": "^4.5.3", "fastify": "^4.5.3",
@ -24,7 +25,6 @@
"solid-js": "^1.5.4" "solid-js": "^1.5.4"
}, },
"devDependencies": { "devDependencies": {
"@tsconfig/node18-strictest-esm": "^1.0.1",
"@types/node": "^18.7.15", "@types/node": "^18.7.15",
"typescript": "^4.8.2" "typescript": "^4.8.2"
} }

View file

@ -4,6 +4,10 @@ user = root
[program:app] [program:app]
command = npm --prefix app start command = npm --prefix app start
stderr_logfile = /dev/stderr
stderr_logfile_maxbytes = 0
[program:api] [program:api]
command = postgrest command = postgrest
stderr_logfile = /dev/stderr
stderr_logfile_maxbytes = 0