- "setup": "# Copy Rails encrypted credentials keys from the main repo (gitignored, not in worktree)\nMAIN_REPO=\"$(dirname \"$(git rev-parse --git-common-dir)\")\"\nmkdir -p config/credentials\nfor key in development.key staging.key production.key test.key; do\n if [ -f \"$MAIN_REPO/config/credentials/$key\" ]; then\n cp \"$MAIN_REPO/config/credentials/$key\" \"config/credentials/$key\"\n echo \"Copied config/credentials/$key from $MAIN_REPO\"\n fi\ndone\n\n# bundle, create db, migrate, run seeds\nbin/setup\n\n# install frontend deps\nnpm install",
0 commit comments