37 lines
1.1 KiB
Bash
Executable File
37 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This script is designed to be run from the top level directory of your project and will break if called from anywhere else
|
|
|
|
if [ ! -e ./config/asc.conf ]; then
|
|
echo "Missing or broken symbolic link: ${PWD}/config/asc.conf"
|
|
echo "Please use the command 'npm run switch-conf-file' to create the symbolic link ./config/asc.conf to your config file"
|
|
echo "If you don't have a config file set up you can create one using 'npm run new-config-file'"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Using the config file at: $(readlink config/asc.conf)"
|
|
|
|
source ./config/asc.conf
|
|
|
|
if [ -z "${apexappid}" ]; then
|
|
echo "Missing config: ${apexappid} apexappid"; exit 1
|
|
fi
|
|
|
|
if [ -z "${workspace_name}" ]; then
|
|
echo "Missing config: ${workspace_name} workspace_name"; exit 1
|
|
fi
|
|
|
|
if [ -z "${database_connection}" ]; then
|
|
echo "Missing config: ${database_connection} database_connection"; exit 1
|
|
fi
|
|
|
|
if [ -z "${username}" ]; then
|
|
echo "Missing config: ${username} username"; exit 1
|
|
fi
|
|
|
|
if [ -z "${password}" ]; then
|
|
echo "Missing config: ${password} password"; exit 1
|
|
fi
|
|
|
|
echo "Config file looks good! Moving on to the next step..."
|