gitea sync only - now using mirrors

This commit is contained in:
waltem01 2022-06-03 08:56:36 +02:00
parent b9ec9f801d
commit a58851f137
2 changed files with 0 additions and 15 deletions

View File

@ -1,4 +0,0 @@
cd /var/www/DancingDuck
git pull origin master
git push gitea master
systemctl restart duckSite.service

View File

@ -42,17 +42,6 @@ app.post('/receiveUpdate', (req, res) => {
});
});
app.post('/gitlabUpdate', (req, res) => {
res.status(200).json({success:true});
let updater = exec(`sh ${__dirname}/../gitlabSync.sh`, (error, stdout, stderr) => {
console.log(stdout);
console.error(stderr);
if (error !== null) {
console.error(`exec error: ${error}`);
}
});
});
function sleep(ms) {
return new Promise(r => {
setTimeout(r, ms);