diff --git a/client/src/pages/Downloads/Info/Info.tsx b/client/src/pages/Downloads/Info/Info.tsx index d472de4f..615b507e 100644 --- a/client/src/pages/Downloads/Info/Info.tsx +++ b/client/src/pages/Downloads/Info/Info.tsx @@ -11,19 +11,12 @@ export const Info = () => { information for each source.

- You may load the{' '} - - latest data dump - {' '} - into your local database instance by running the following command while - in your local checkout of the DGIdb repository: + You may instantiate your local database instance by running the + following command while in the 'server' directory of your local checkout + of the DGIdb repository:

- psql -d dgidb -f dgidb_v5_latest.sql + rake dgidb:load_local

This will recreate the local database and import the latest data dump diff --git a/server/lib/tasks/db_bootstrapping.rake b/server/lib/tasks/db_bootstrapping.rake index 93cf26a0..0919208c 100644 --- a/server/lib/tasks/db_bootstrapping.rake +++ b/server/lib/tasks/db_bootstrapping.rake @@ -9,7 +9,7 @@ namespace :dgidb do else data_submodule_path = File.join(Rails.root, 'data') end - data_file = File.join(data_submodule_path, 'data.sql') + data_file = File.join(data_submodule_path, 'dgidb_v5_latest.sql') version_file = File.join(Rails.root, 'VERSION') database_name = Rails.configuration.database_configuration[Rails.env]['database'] host = Rails.configuration.database_configuration[Rails.env]['host'] diff --git a/server/lib/utils/snapshot_helpers.rb b/server/lib/utils/snapshot_helpers.rb index e27ef89b..68650bb6 100644 --- a/server/lib/utils/snapshot_helpers.rb +++ b/server/lib/utils/snapshot_helpers.rb @@ -52,7 +52,7 @@ def download_data_dump(destination) unless Dir.exist? 'data' Dir.mkdir('data') end - system_or_die("wget -O #{destination} http://dgidb.org/data/data.sql") + system_or_die("wget -O #{destination} https://nch-igm-wagner-lab-public.s3.us-east-2.amazonaws.com/dgidb_v5_latest.sql") end private