mirror of
https://github.com/tiennm99/store-scraper-api.git
synced 2026-10-16 08:15:31 +00:00
fix(docker):
This commit is contained in:
1 parent
2dae27e87e
commit
a1a180ef33
2 files changed
+4
No files matched your search
@@ -3,4 +3,5 @@ WORKDIR /app
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
EXPOSE 3000
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
@@ -2,6 +2,9 @@ import app from './index.js';
|
|||||||
|
|
||||||
const PORT = process.env.PORT || 3000;
|
const PORT = process.env.PORT || 3000;
|
||||||
|
|
||||||
|
console.log('Environment variables:', process.env);
|
||||||
|
console.log('Attempting to start on port:', PORT);
|
||||||
|
|
||||||
app.listen(PORT, '0.0.0.0', () => {
|
app.listen(PORT, '0.0.0.0', () => {
|
||||||
console.log(`Server is running on port ${PORT}`);
|
console.log(`Server is running on port ${PORT}`);
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user