Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #198 from dxw/fix/start-up-script
Browse files Browse the repository at this point in the history
Fix/start up script
  • Loading branch information
tahb authored Jun 1, 2022
2 parents c119d7a + 93bc618 commit 108be77
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 35 deletions.
78 changes: 59 additions & 19 deletions Brewfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,76 @@
"entries": {
"tap": {
"mongodb/brew": {
"revision": "1ec52e55b8d66cac398497d9643cf475df842e64"
"revision": "710d895cb47a2cf99fd2399277de2227b20e910a"
}
},
"brew": {
"[email protected]": null,
"[email protected]": {
"version": "4.4.13",
"bottle": false
},
"rbenv": {
"version": "1.1.2",
"version": "1.2.0",
"bottle": {
"cellar": ":any",
"prefix": "/usr/local",
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/rbenv/blobs/sha256:dede9454bc8a665ac2b1858a0522fb77d95deebb5db7437918cfb056ff119b16",
"sha256": "dede9454bc8a665ac2b1858a0522fb77d95deebb5db7437918cfb056ff119b16"
},
"arm64_big_sur": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/rbenv/blobs/sha256:d5e6168ad6ab8843946273319fc6949b322c80f2d666a6bdda62466e256e6746",
"sha256": "d5e6168ad6ab8843946273319fc6949b322c80f2d666a6bdda62466e256e6746"
},
"monterey": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/rbenv/blobs/sha256:42657e04e2d1e8bf9abb9c5f0ba50e567df95f93a2a212491f005e4bd0ad9cee",
"sha256": "42657e04e2d1e8bf9abb9c5f0ba50e567df95f93a2a212491f005e4bd0ad9cee"
},
"big_sur": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/rbenv/blobs/sha256:8a1b159909d472cc461d0a9b85a192a31ab58860e34f022fcbb33175732d24aa",
"sha256": "8a1b159909d472cc461d0a9b85a192a31ab58860e34f022fcbb33175732d24aa"
},
"catalina": {
"url": "https://homebrew.bintray.com/bottles/rbenv-1.1.2.catalina.bottle.tar.gz",
"sha256": "503ed6d818502f00f031b9f49461934e252b9bfba2876e90a326fc27bb1052d6"
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/rbenv/blobs/sha256:a2ca52c4fe3b7000d9f84f81836ddcb9b3aea9c20ee092dd71c1e10cf3a6a19a",
"sha256": "a2ca52c4fe3b7000d9f84f81836ddcb9b3aea9c20ee092dd71c1e10cf3a6a19a"
},
"mojave": {
"url": "https://homebrew.bintray.com/bottles/rbenv-1.1.2.mojave.bottle.tar.gz",
"sha256": "d1019098dee8d037587069398e5ad04e6d736f834dc44ae73943bec46b10b260"
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/rbenv/blobs/sha256:87ca53a9f4f84aff56ccbf2f823f903d20bc6669dde548018892857cc8871936",
"sha256": "87ca53a9f4f84aff56ccbf2f823f903d20bc6669dde548018892857cc8871936"
},
"high_sierra": {
"url": "https://homebrew.bintray.com/bottles/rbenv-1.1.2.high_sierra.bottle.tar.gz",
"sha256": "b5984102794a9d39388ca1f6ec77965aeea29b971cc00cb5af8ede8ee6c926d6"
},
"sierra": {
"url": "https://homebrew.bintray.com/bottles/rbenv-1.1.2.sierra.bottle.tar.gz",
"sha256": "873175a851e5aa4f5b3438072030b945c252f08a9a07760c64dc045e2cce4724"
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/rbenv/blobs/sha256:f4be8e4efef32c1fcdaa585312b3262d33b3306d9d7d9c75abd1230227b10bb7",
"sha256": "f4be8e4efef32c1fcdaa585312b3262d33b3306d9d7d9c75abd1230227b10bb7"
}
}
}
},
"yarn": {
"version": "1.22.5",
"bottle": false
"version": "1.22.19",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"all": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/yarn/blobs/sha256:79b90324a5365189a144b786e9bdb3bf32be3823e9041d5f3250ea7b804dcd0b",
"sha256": "79b90324a5365189a144b786e9bdb3bf32be3823e9041d5f3250ea7b804dcd0b"
}
}
}
}
},
"cask": {
"chromedriver": {
"version": "85.0.4183.87",
"version": "102.0.5005.61",
"options": {
"full_name": "chromedriver"
}
Expand All @@ -55,6 +87,14 @@
"CLT": "1103.0.32.62",
"Xcode": "11.5",
"macOS": "10.15.6"
},
"monterey": {
"HOMEBREW_VERSION": "3.4.11",
"HOMEBREW_PREFIX": "/usr/local",
"Homebrew/homebrew-core": "f9d95021afe7c4ebf720cbda8a3b360919a72d50",
"CLT": "13.4.0.0.1.1651278267",
"Xcode": "13.3",
"macOS": "12.4"
}
}
}
Expand Down
16 changes: 0 additions & 16 deletions script/setup
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,7 @@ if [ ! -f .env.development.local ]; then
fi

echo "==> Dropping database..."
set +e
bundle exec rails db:drop
DB_DROP_RESULT=$?
set -e

if [ -z "$CI" ] && [ -n "$DB_DROP_RESULT" ]; then
printf "\\nDatabase drop failed. Continue anyway? [y/N] "
read -r

case $REPLY in
y | Y)
;;
*)
exit 1
;;
esac
fi

echo "==> Starting Mongo database..."
brew services start [email protected]
Expand Down

0 comments on commit 108be77

Please sign in to comment.