Skip to content

Commit

Permalink
Admin: Workaround for missing server node_modules on DigitalOcean (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarnutsch authored Nov 13, 2024
1 parent c6bcba6 commit 1b6845b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .digitalocean/comet-starter-cms.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,5 @@ services:
instance_count: 1
instance_size_slug: apps-s-1vcpu-0.5gb
name: admin
run_command: npm run serve
run_command: cd server && npm i && node server.js # Workaround for missing node_modules in cache (only parent node_mdoules are cached)
source_dir: admin
6 changes: 1 addition & 5 deletions admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,5 @@
"typescript": "~5.1.0",
"vite": "^5.4.11",
"vite-plugin-html": "^3.2.2"
},
"cacheDirectories": [
"node_modules",
"server/node_modules"
]
}
}

0 comments on commit 1b6845b

Please sign in to comment.