fix: use entire file paths when pushing files to Dokku
This commit is contained in:
parent
28e6e2f889
commit
aa554fa39d
@ -134,11 +134,7 @@ export class SandboxManager {
|
||||
const handleDeploy: SocketHandler = async (_: any) => {
|
||||
if (!this.gitClient) throw Error("No git client")
|
||||
if (!this.fileManager) throw Error("No file manager")
|
||||
const fixedFilePaths = this.fileManager?.fileData.map((file) => ({
|
||||
...file,
|
||||
id: file.id.split("/").slice(2).join("/"),
|
||||
}))
|
||||
await this.gitClient.pushFiles(fixedFilePaths, this.sandboxId)
|
||||
await this.gitClient.pushFiles(this.fileManager?.fileData, this.sandboxId)
|
||||
return { success: true }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user