chore: initial commit for asepharyana-hub-scraper
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// PM2 Ecosystem Configuration for Rust
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'ultimate-rust',
|
||||
script: 'target/release/scraper',
|
||||
cwd: process.env.VPS_TARGET_DIR
|
||||
? `${process.env.VPS_TARGET_DIR}/apps/scraper`
|
||||
: '/home/asephs/ultimate-asepharyana.cloud/apps/scraper',
|
||||
interpreter: 'none',
|
||||
exec_mode: 'fork',
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: '1G',
|
||||
env_production: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 4091,
|
||||
},
|
||||
// Logging configuration
|
||||
error_file: './logs/error.log',
|
||||
out_file: './logs/out.log',
|
||||
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||
merge_logs: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user