mirror of
https://github.com/tiennm99/store-scraper-api.git
synced 2026-07-17 00:17:29 +00:00
feat(debug): cleanup
This commit is contained in:
@@ -3,7 +3,4 @@ WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
EXPOSE 3000
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD node -e "require('http').get('http://localhost:3000/', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
@@ -2,9 +2,6 @@ import app from './index.js';
|
||||
|
||||
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', () => {
|
||||
console.log(`Server is running on port ${PORT}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user