gitea sync only - now using mirrors
This commit is contained in:
parent
b9ec9f801d
commit
a58851f137
|
@ -1,4 +0,0 @@
|
|||
cd /var/www/DancingDuck
|
||||
git pull origin master
|
||||
git push gitea master
|
||||
systemctl restart duckSite.service
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user