1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-11 00:10:06 +00:00

chore: provide sas executable to docker

This commit is contained in:
Saad Jutt
2021-11-16 05:07:22 +05:00
parent f030aa1516
commit 357bccce01
10 changed files with 68 additions and 36 deletions

23
startProduction.sh Executable file
View File

@@ -0,0 +1,23 @@
sasjsPath=$(grep sasPath package.json | sed 's/.*"sasPath": "\(.*\)".*/\1/')
if [ -z "$sasjsPath" ]
then
echo "Please enter path to SAS executable:"
read sasjsPath
fi
if [ -e $sasjsPath ]
then
echo "Using sas executable:" \"$sasjsPath\"
else
echo "No file present at:" \"$sasjsPath\"
exit 1
fi
cp $sasjsPath ./
sasjs=$(basename $sasjsPath)
echo "SAS Executable name:" $sasjs
SAS_EXEC=$sasjs docker-compose -f docker-compose.prod.yml up --build -d