Ecosystem.config具有未知的指令“ module.exports”问题

时间:2020-08-06 21:37:57

标签: ubuntu nginx pm2

我试图添加子域。我从https://www.datanovia.com/en/lessons/how-to-create-a-subdomain-on-digitalocean/走了3个步骤 并得到错误:

nginx: [emerg] unknown directive "module.exports" in /etc/nginx/sites-enabled/ecosystem.config.js:1

生态配置:

module.exports = {
  apps : [{
    script: 'index.js',
    watch: '.'
  }, {
    script: './service-worker/',
    watch: ['./service-worker']
  }],

  deploy : {
    production : {
      user : 'SSH_USERNAME',
      host : 'SSH_HOSTMACHINE',
      ref  : 'origin/master',
      repo : 'GIT_REPOSITORY',
      path : 'DESTINATION_PATH',
      'pre-deploy-local': '',
      'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production',
      'pre-setup': ''
    }
     

我没有更改。为pm2创建了生态配置

0 个答案:

没有答案
相关问题