← back to Archive Agent
ecosystem.config.js
19 lines
module.exports = {
apps: [{
name: 'archive-agent',
script: 'server.js',
cwd: '/root/DW-Agents/archive-agent',
env: {
PORT: 9648,
ARCHIVE_SCAN_MINUTES: 60,
SHOPIFY_STORE: 'designer-laboratory-sandbox.myshopify.com',
SHOPIFY_ADMIN_TOKEN: (process.env.SHOPIFY_ADMIN_TOKEN || ''),
DATABASE_URL: (process.env.DATABASE_URL || 'postgresql://dw_admin:GDTfRN4cfYo8nwyiov0r22WF@127.0.0.1:5432/dw_unified'),
},
error_file: '/root/DW-Agents/archive-agent/logs/error.log',
out_file: '/root/DW-Agents/archive-agent/logs/out.log',
time: true,
max_memory_restart: '500M',
}],
};