Skip to content

Commit

Permalink
Run in production (gunicorn with pm2)
Browse files Browse the repository at this point in the history
  • Loading branch information
cywhale committed Dec 8, 2022
1 parent 6b90974 commit 3479e49
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions conf/ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
apps : [{
name: 'gebco',
script: 'gunicorn read_gebco01:app -w 4 -k uvicorn.workers.UvicornWorker -b 127.0.0.1:8013 --keyfile conf/privkey.pem --certfile conf/fullchain.pem --reload',
args: '',
merge_logs: true,
autorestart: true,
log_file: "tmp/combined.outerr.log",
out_file: "tmp/out.log",
error_file: "tmp/err.log",
log_date_format : "YYYY-MM-DD HH:mm Z",
append_env_to_name: true,
watch: false,
max_memory_restart: '4G',
}],
};

0 comments on commit 3479e49

Please sign in to comment.