Update demos-run-v1.js
fix: fixed incorrect code committ
This commit is contained in:
parent
ec92e7ff64
commit
b1642bc2bd
@ -9,6 +9,8 @@ const fs = require('fs');
|
||||
const util = require('util');
|
||||
const execProm = util.promisify(exec);
|
||||
|
||||
const repoName = 'website' // Change to match actual repo name on git.tcf.ventures
|
||||
|
||||
// Simple sleep function using a promise
|
||||
function sleep(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
@ -67,6 +69,23 @@ async function main() {
|
||||
// Now that chalk is installed, require it for future logs
|
||||
const chalk = require('chalk');
|
||||
|
||||
// Initialize fresh git just in case its not already
|
||||
await executeCommand(
|
||||
'git init',
|
||||
'⚙️ Initializing git... Git-er done.',
|
||||
'Git initialized!',
|
||||
chalk.yellow
|
||||
);
|
||||
|
||||
// Pull latest files from #main branch
|
||||
// Its a read-only access token, don't worry
|
||||
await executeCommand(
|
||||
'git pull https://cbarnett:a72f754efcf65404e5fbc2a70a8f08619fe058bb@git.tcf.ventures/TCF-Ventures-LLC/' + repoName,
|
||||
'📥 Importing repo files... Are these your files? 🃏',
|
||||
'Files Imported!',
|
||||
chalk.green
|
||||
);
|
||||
|
||||
// Install remaining dependencies
|
||||
await executeCommand(
|
||||
'npm install',
|
||||
|
Loading…
Reference in New Issue
Block a user