Skip to content

Commit 17dd04a

Browse files
author
Brian Casel
committed
Copy Rails credential keys into new worktrees during Superconductor setup
Worktrees forked from the main checkout were missing master.key and environment credential keys, so the app couldn't decrypt credentials. The setup step now copies them from the main repo into each worktree.
1 parent 080f10f commit 17dd04a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.superconductor/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"setup": [
3+
"SRC=\"$(cd \"$(dirname \"$(git rev-parse --git-common-dir)\")\" && pwd)\"; if [ \"$SRC\" != \"$PWD\" ]; then mkdir -p config/credentials; for f in master.key credentials/development.key credentials/production.key; do [ -f \"$SRC/config/$f\" ] && cp -f \"$SRC/config/$f\" \"config/$f\"; done; fi; true",
34
"bin/setup",
45
"npm install"
56
],

0 commit comments

Comments
 (0)