Skip to content

Commit

Permalink
Move mongodb from mLab to Atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorjg committed May 26, 2021
1 parent d11e57b commit 98eec9d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 55 deletions.
20 changes: 3 additions & 17 deletions db/db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ local_run_sql_script()
--interactive \
--tty \
mongo-sudoku-buster \
mongo \
--quiet \
"/db_scripts/$1"
mongo --quiet "/db_scripts/$1"
}

local_start()
Expand All @@ -64,12 +62,7 @@ heroku_shell()
--interactive \
--tty \
mongo-sudoku-buster \
mongo \
--username "$HEROKU_DB_USERNAME" \
--password "$HEROKU_DB_PASSWORD" \
--host "$HEROKU_DB_HOST" \
--port "$HEROKU_DB_PORT" \
"$HEROKU_DB_DATABASE"
mongo "$MONGODB_URI"
}

heroku_run_sql_script()
Expand All @@ -78,14 +71,7 @@ heroku_run_sql_script()
--interactive \
--tty \
mongo-sudoku-buster \
mongo \
--username "$HEROKU_DB_USERNAME" \
--password "$HEROKU_DB_PASSWORD" \
--host "$HEROKU_DB_HOST" \
--port "$HEROKU_DB_PORT" \
--quiet \
"$HEROKU_DB_DATABASE" \
"/db_scripts/$1"
mongo --quiet "$MONGODB_URI" "/db_scripts/$1"
}

case "${1:-}" in
Expand Down
74 changes: 37 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"heroku-ssl-redirect": "0.0.4",
"loglevel": "^1.6.6",
"moment": "^2.24.0",
"mongodb": "^3.3.4",
"mongodb": "^3.6.8",
"morgan": "^1.9.1",
"query-string": "^6.9.0",
"ramda": "^0.26.1",
Expand Down

0 comments on commit 98eec9d

Please sign in to comment.