-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux 服务器部署问题 #91
Comments
我假设你想问的是: “如何把 NodePress 程序在 Linux 上以生产模式成功运行起来?”
module.exports = {
apps: [
{
name: 'nodepress',
watch: ['dist'],
script: 'dist/main.js',
instances: 'max',
exec_mode: 'cluster',
node_args: [],
max_memory_restart: '268M',
args: [
'--auth_data=XXX',
'--auth_key=XXX',
'--auth_default_password=XXX',
// ...
],
log_date_format: 'YYYY-MM-DD HH:mm Z',
error_file: '/var/wwwlogs/nodepress/error.log',
out_file: '/var/wwwlogs/nodepress/out.log',
env: {
NODE_ENV: 'production',
},
},
],
} |
谢谢,已解决。 |
https://api.surmon.me/ api 响应好快,求问下作者是直接部署的机器是什么配置的? 或者是否是部在 serverless 上? |
serverless 仅适合无状态应用部署,需要将任何涉及状态的服务抽离至独立的云服务,如 Reids 需要你有 HTTP 化的接口才能高效运行,MongoDB 同理;所以我的服务仅部署在 HK 区域的 Linux 单机服务器,你感受到 “快”,可能仅仅是地理位置的加持。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请问下大佬,有这关于nodepress部署到linux服务器上的教程吗?第三方也行。
The text was updated successfully, but these errors were encountered: