This commit is contained in:
paoloar77
2024-01-24 16:23:13 +01:00
parent c760e9265f
commit 6135d0f8aa
6 changed files with 7 additions and 7 deletions

View File

@@ -5,6 +5,6 @@ WORKDIR /app
COPY . . COPY . .
RUN npm install RUN npm install
EXPOSE 3100 EXPOSE 3014
CMD ["npm", "run", "start"] CMD ["npm", "run", "start"]

View File

@@ -238,7 +238,7 @@ module.exports = {
}, },
// Options for the API server // Options for the API server
apiOptions: { apiOptions: {
port: process.env.API_PORT || 3100, port: process.env.API_PORT || 3014,
host: process.env.API_HOST || 'localhost', host: process.env.API_HOST || 'localhost',
// (Optional) Set to true to enable `console.debug()` logging // (Optional) Set to true to enable `console.debug()` logging
debug: false, debug: false,

View File

@@ -159,7 +159,7 @@ server.post('/conversation', async (request, reply) => {
}); });
server.listen({ server.listen({
port: settings.apiOptions?.port || settings.port || 3100, port: settings.apiOptions?.port || settings.port || 3014,
host: settings.apiOptions?.host || 'localhost', host: settings.apiOptions?.host || 'localhost',
}, (error) => { }, (error) => {
if (error) { if (error) {

View File

@@ -16,7 +16,7 @@ const opts = {
try { try {
let reply = ''; let reply = '';
const controller = new AbortController(); const controller = new AbortController();
await fetchEventSource('http://localhost:3001/conversation', { await fetchEventSource('http://localhost:3014/conversation', {
...opts, ...opts,
signal: controller.signal, signal: controller.signal,
onopen(response) { onopen(response) {

View File

@@ -11,4 +11,4 @@ services:
volumes: volumes:
- ./settings.js:/app/settings.js:cached - ./settings.js:/app/settings.js:cached
ports: ports:
- '${APP_PORT:-3100}:3100' - '${APP_PORT:-3014}:3014'

View File

@@ -9,7 +9,7 @@ module.exports = {
//autorestart: true, //autorestart: true,
instances: 1, instances: 1,
env: { env: {
"PORT": 3100, "PORT": 3014,
"NODE_ENV": "development", "NODE_ENV": "development",
}, },
env_test: { env_test: {
@@ -17,7 +17,7 @@ module.exports = {
"NODE_ENV": "test", "NODE_ENV": "test",
}, },
env_production: { env_production: {
"PORT": 3100, "PORT": 3014,
"NODE_ENV": "production", "NODE_ENV": "production",
}, },
log_file: "logs/combined.outerr.log", log_file: "logs/combined.outerr.log",