-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1566 from unipept/feature/deploy-script
Add post-build script that automatically configures umgap files
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This script should be executed after the application has been compiled and built. This script is automatically | ||
# executed as part of the "build"-command of npm (as defined in the package.json file). | ||
|
||
# First step, create links to the files that are required by the UMGAP pipeline in the correct location. | ||
UMGAP_VERSION="2024-03-07" | ||
mkdir dist/system | ||
mkdir dist/system/umgap | ||
mkdir dist/system/umgap/${UMGAP_VERSION} | ||
|
||
printf "${UMGAP_VERSION}\n" > latest | ||
ln -s "/mnt/datapept/${UMGAP_VERSION}/taxons.tsv" "dist/system/umgap/${UMGAP_VERSION}/taxons.tsv" | ||
ln -s "/mnt/datapept/${UMGAP_VERSION}/tryptic.fst" "dist/system/umgap/${UMGAP_VERSION}/tryptic.fst" | ||
ln -s "/mnt/datapept/${UMGAP_VERSION}/ninemer.fst" "dist/system/umgap/${UMGAP_VERSION}/ninemer.fst" |