chore: switch to node pnp initializing

This commit is contained in:
Karol Sójko
2023-02-14 07:59:31 +01:00
parent ffc270cc6f
commit 12d9ccf28c
24 changed files with 175 additions and 19 deletions
@@ -0,0 +1,11 @@
'use strict'
const path = require('path')
const pnp = require(path.normalize(path.resolve(__dirname, '../../..', '.pnp.cjs'))).setup()
const index = require(path.normalize(path.resolve(__dirname, '../dist/bin/server.js')))
Object.defineProperty(exports, '__esModule', { value: true })
exports.default = index
@@ -0,0 +1,11 @@
'use strict'
const path = require('path')
const pnp = require(path.normalize(path.resolve(__dirname, '../../..', '.pnp.cjs'))).setup()
const index = require(path.normalize(path.resolve(__dirname, '../dist/bin/worker.js')))
Object.defineProperty(exports, '__esModule', { value: true })
exports.default = index
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail
sh supervisor/wait-for.sh $DB_HOST $DB_PORT
sh supervisor/wait-for.sh $REDIS_HOST $REDIS_PORT
node supervisor/entrypoint-server.js
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail
sh supervisor/wait-for.sh localhost $SYNCING_SERVER_PORT
node supervisor/entrypoint-worker.js