chuck.js/scripts/deploy.sh
2015-04-02 23:01:02 +02:00

24 lines
No EOL
411 B
Bash
Executable file

#!/bin/bash
# Get dir of this script
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/..
if [ -z "$1" ]
then
pm2 deploy $DIR/config/ecosystem-dev.json5 dev
exit
fi
if [ "$1" == "production" ]
then
pm2 deploy $DIR/config/ecosystem.json5 production
exit
fi
if [ "$1" == "production2" ]
then
pm2 deploy $DIR/config/ecosystem.json5 production2
exit
fi
echo "Case ($1) not defined. doing nothing."