chore: Update git command to use custom SSH key for pulling articles
This commit is contained in:
parent
8a5d09d615
commit
04f9bd5e99
|
@ -7,7 +7,7 @@ import { execSync } from 'child_process';
|
|||
export default async function init(db: Postgres) {
|
||||
if (fs.existsSync('./articles/')) {
|
||||
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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user