Skip to content

Commit

Permalink
fix(misc): πŸ› test game assets are not packaged with docker image (#471)
Browse files Browse the repository at this point in the history
βœ… Closes: #470
  • Loading branch information
andrew-codes authored Aug 13, 2024
2 parents a125d42 + d123311 commit 613b7f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/playnite-web/scripts/utils/packageFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const run = () => {
sh.mkdir('-p', '_packaged/build')
sh.cp('server.production.js', '_packaged/')
sh.cp('-R', 'build/client', '_packaged/build/')
sh.rm('-rf', '_packaged/build/client/assets/asset-by-id/*.*')
}

export default run
2 changes: 1 addition & 1 deletion apps/playnite-web/scripts/utils/startE2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function run() {
}

sh.exec(
`docker run -e DEBUG=\"playnite-web/*\" -v $PWD/public/:/opt/playnite-web-app/public --env-file e2e.env -p 3000:3000 --network host ghcr.io/andrew-codes/playnite-web-app:${e2eTag}`,
`docker run -e DEBUG=\"playnite-web/*\" -v $PWD/public/assets/asset-by-id:/opt/playnite-web-app/public/assets/asset-by-id --env-file e2e.env -p 3000:3000 --network host ghcr.io/andrew-codes/playnite-web-app:${e2eTag}`,
)
}

Expand Down

0 comments on commit 613b7f4

Please sign in to comment.