port
This commit is contained in:
@@ -5,6 +5,6 @@ WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN npm install
|
||||
EXPOSE 3100
|
||||
EXPOSE 3014
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -11,4 +11,4 @@ services:
|
||||
volumes:
|
||||
- ./settings.js:/app/settings.js:cached
|
||||
ports:
|
||||
- '${APP_PORT:-3100}:3100'
|
||||
- '${APP_PORT:-3014}:3014'
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user