Browse Source

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

master
Zed A. Shaw 6 months ago
parent
commit
9079f12712
  1. 14
      ecosystem.config.js
  2. 9
      scripts/services/gitea.js
  3. 14
      staging.config.js

14
ecosystem.config.js

@ -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
scripts/services/gitea.js

@ -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
staging.config.js

@ -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