Skip to content

Commit

Permalink
fix: use the resolved db dump url (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
varl authored and amcgee committed May 27, 2019
1 parent 745d0dd commit 0f26ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/cluster/src/commands/up.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ const run = async function(argv) {

if (seed || seedFile) {
await doSeed({
name,
cacheLocation,
dbVersion: cfg.dbVersion,
name,
url: cfg.demoDatabaseURL,
path: seedFile,
update,
...argv,
Expand Down
5 changes: 1 addition & 4 deletions packages/cluster/src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ module.exports.seed = async ({
: await downloadDatabase({
cache: argv.getCache(),
dbVersion,
url:
url ||
argv.cluster.demoDatabaseURL ||
defaults.demoDatabaseURL,
url,
update,
})
await seedFromFile({ cacheLocation, dbFile, dbVersion, name })
Expand Down

0 comments on commit 0f26ad1

Please sign in to comment.