fiumba
This commit is contained in:
18
tools/deploy-with-ssh-key.sh
Executable file
18
tools/deploy-with-ssh-key.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Check environment to build
|
||||
ENV=$1
|
||||
CUSTOM_ENV=$2
|
||||
|
||||
# Checking valid environment
|
||||
if [ "$ENV" != "prod" ] && [ "$ENV" != "dev" ] && [ "$ENV" != "demo" ] && [ "$ENV" != "open-demo" ]; then
|
||||
if [ "$CUSTOM_ENV" != "true" ]; then
|
||||
echo "Invalid environment $ENV";
|
||||
exit 0;
|
||||
fi
|
||||
echo "WARNING: you are using a custom env $CUSTOM_ENV"
|
||||
fi
|
||||
|
||||
ssh quantex@"$ENV".quantex.com.ar "mkdir -p qfixdpl"
|
||||
scp build/out/distribution/qfixdpl.gz quantex@"$ENV".quantex.com.ar:./qfixdpl/
|
||||
ssh quantex@"$ENV".quantex.com.ar "unzip_qfixdpl.sh"
|
||||
Reference in New Issue
Block a user