Browse Source

Bringing back the CI but on a separate port I can control.

master
Zed A. Shaw 2 months ago
parent
commit
9079f12712
3 changed files with 37 additions and 0 deletions
  1. +14
    -0
      ecosystem.config.js
  2. +9
    -0
      scripts/services/gitea.js
  3. +14
    -0
      staging.config.js

+ 14
- 0
ecosystem.config.js View File

@@ -84,6 +84,20 @@ module.exports = {
NODE_ENV: 'production'
}
},
{
name: 'giteaci',
script: './scripts/services/gitea.js',
instances: 1,
autorestart: true,
watch: [],
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
},
],
};



+ 9
- 0
scripts/services/gitea.js View File

@@ -0,0 +1,9 @@
const polka = require('polka');
const gitea = require('../../lib/gitea').gitea;

const app = polka();
app.use('/webhook', gitea);

app.listen(3030, err => {
if(err) log.error(err);
});

+ 14
- 0
staging.config.js View File

@@ -42,6 +42,20 @@ module.exports = {
NODE_ENV: 'production'
}
},
{
name: 'giteaci',
script: './scripts/services/gitea.js',
instances: 1,
autorestart: true,
watch: [],
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
},
],
}



Loading…
Cancel
Save