feat: change article managment: git submodules to dynamic git clone&pull #7

Merged
Hare merged 5 commits from develop into master 2024-09-03 07:01:15 +09:00
Showing only changes of commit 04f9bd5e99 - Show all commits

View File

@ -7,7 +7,7 @@ import { execSync } from 'child_process';
export default async function init(db: Postgres) { export default async function init(db: Postgres) {
if (fs.existsSync('./articles/')) { if (fs.existsSync('./articles/')) {
console.log('Pulling articles from git..'); console.log('Pulling articles from git..');
const stdout = execSync('git pull', { cwd: './articles/' }); const stdout = execSync('git -c core.sshCommand="ssh -i ../key -F /dev/null" pull', { cwd: './articles/' });
console.log(stdout.toString()); console.log(stdout.toString());
} }