Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra: Add db import script #4004

Merged
merged 6 commits into from
Oct 7, 2024
Merged

Infra: Add db import script #4004

merged 6 commits into from
Oct 7, 2024

Conversation

minotogna
Copy link
Member

@minotogna minotogna commented Oct 4, 2024

@sorja @yaguzmang
Add db import script + added intellij/webstorm run configuration .

image

It's basically a command that runs the following command:

(cd src/tools/db/importBackup && ./exec.sh) && ts-node src/tools/generateCache/index.ts

@yaguzmang feel free to add the vscode version if you need it.

@sorja
Copy link
Contributor

sorja commented Oct 5, 2024

to avoid ../../../ you can also cd in subshell using parenthesis

(cd src/tools/db/importBackup && ./exec.sh) && ts-node src/tools/generateCache/index.ts

@minotogna
Copy link
Member Author

to avoid ../../../ you can also cd in subshell using parenthesis

(cd src/tools/db/importBackup && ./exec.sh) && ts-node src/tools/generateCache/index.ts

nice 👍
@sorja @yaguzmang I have also updated the wiki: https://github.com/openforis/fra-platform/wiki/Developer-Commands:-Database

@minotogna minotogna requested a review from sorja October 7, 2024 08:39
sorja
sorja previously approved these changes Oct 7, 2024
.run/db_backup-import.run.xml Outdated Show resolved Hide resolved
@mergify mergify bot merged commit 0b28d6e into development Oct 7, 2024
5 checks passed
@mergify mergify bot deleted the infra/dbImport branch October 7, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants