Skip to content

Commit

Permalink
fix: restart storage volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed May 24, 2023
1 parent d4798a3 commit f30f23a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/api/src/routes/api/v1/applications/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,7 @@ export async function restartApplication(

const volumes =
persistentStorage?.map((storage) => {
return `${applicationId}${storage.path.replace(/\//gi, '-')}:${buildPack !== 'docker' ? '/app' : ''
}${storage.path}`;
return `${applicationId}${storage.path.replace(/\//gi, '-')}:${storage.path}`;
}) || [];
const composeVolumes = volumes.map((volume) => {
return {
Expand Down

0 comments on commit f30f23a

Please sign in to comment.