Skip to content

Commit

Permalink
Update docker.js
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen McLaughlin <[email protected]>
  • Loading branch information
hardillb and Steve-Mcl authored Jul 16, 2024
1 parent 1a7199b commit e932deb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,6 @@ module.exports = {
if (this._app.config.driver.options?.storage?.enabled) {
// need to be sure we have permission to delete the dir and it's contents?
try {
// This is the wrong path, the directory will need mounting into the forge-docker container
// const projectPersistentPath = path.join(this._app.config.driver.options?.storage?.path, project.id)
// rmSync(projectPersistentPath, { recursive: true, force: true})
// This is better and assumes that directory is mounted on `/opt/storage`
const projectPersistentPath = path.join('/opt/persistent-storage', project.id)
rmSync(projectPersistentPath, { recursive: true, force: true })
Expand Down

0 comments on commit e932deb

Please sign in to comment.