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 . .
RUN npm install
EXPOSE 3100
EXPOSE 3014
CMD ["npm", "run", "start"]

View File

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

View File

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

View File

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

View File

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

View File

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