Skip to content

Olibitbat/test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

const { spawnSync } = require('child_process') const { existsSync, writeFileSync } = require('fs')

const SESSION_ID levanter_10f83843b608dd4c2ea85fb3f9b953e192 'updateThis' // Edit this line only, don't remove ' <- this symbol

if (!existsSync('levanter')) { process.env.COREPACK_ENABLE=0

console.log('Cloning the repository...') const cloneResult = spawnSync( 'git', ['clone', 'https://github.com/lyfe00011/levanter.git', 'levanter'], { stdio: 'inherit', } )

if (cloneResult.error) { throw new Error(Failed to clone the repository: ${cloneResult.error.message}) }

const configPath = 'levanter/config.env' try { console.log('Writing to config.env...') writeFileSync(configPath, VPS=true\nSESSION_ID=${SESSION_ID}) } catch (err) { throw new Error(Failed to write to config.env: ${err.message}) }

console.log('Installing dependencies...') const installResult = spawnSync('yarn', ['install', '--network-concurrency', '3'], { cwd: 'levanter', stdio: 'inherit', })

if (installResult.error) { throw new Error(Failed to install dependencies: ${installResult.error.message}) } } spawnSync('yarn', ['start'], { cwd: 'levanter', stdio: 'inherit' })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%