mirror of
https://gitlab.com/MrFry/qmining-data-editor
synced 2025-04-01 20:24:01 +02:00
removed some domain dependencies
This commit is contained in:
parent
f8d423f162
commit
b854b035c7
3 changed files with 9 additions and 41 deletions
18
make.sh
18
make.sh
|
@ -1,18 +1,2 @@
|
|||
#!/bin/bash
|
||||
scriptPath=$(dirname -- "${0}")
|
||||
domainPath="${scriptPath}/../../data/domain"
|
||||
|
||||
domain="${DOMAIN}"
|
||||
|
||||
if [ -z "${domain}" ] && [ -f "${domainPath}" ]; then
|
||||
domain=$(cat "${domainPath}")
|
||||
fi
|
||||
|
||||
if [ -z "${domain}" ]; then
|
||||
echo -e "\033[0;41mDOMAIN is not set, and ${domainPath} does not exist!\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
NEXT_PUBLIC_DOMAIN="${domain}" npm run export
|
||||
|
||||
echo "Exported with domain: '${domain}'"
|
||||
npm run export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue