This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathdevelopment.sh
executable file
·54 lines (46 loc) · 2.04 KB
/
development.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
###########################################################################
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###########################################################################
if [ -z "${STARTHINKER_ROOT}" ]; then
echo "Checking directory...."
if [ -d "${PWD}/install" ]; then
echo "Setting root path..."
STARTHINKER_ROOT=$PWD
else
echo ""
echo "Directory starthinker not found."
echo "This utility must be run from the directory containing the starthinker directory."
echo "Please change directories and try again."
echo ""
fi
fi
if [ ! -z "${STARTHINKER_ROOT}" ]; then
echo "Setting development variables..."
source "${STARTHINKER_ROOT}/starthinker_assets/config.sh";
export STARTHINKER_SCALE=1;
export STARTHINKER_DEVELOPMENT=1;
export STARTHINKER_CLIENT="${STARTHINKER_CLIENT_INSTALLED}";
export STARTHINKER_UI_DOMAIN="${STARTHINKER_UI_DEVELOPMENT_DOMAIN}";
export STARTHINKER_UI_SECRET="${STARTHINKER_UI_DEVELOPMENT_SECRET}";
export STARTHINKER_UI_DATABASE_ENGINE="${STARTHINKER_UI_DEVELOPMENT_DATABASE_ENGINE}";
export STARTHINKER_UI_DATABASE_HOST="${STARTHINKER_UI_DEVELOPMENT_DATABASE_HOST}";
export STARTHINKER_UI_DATABASE_PORT="${STARTHINKER_UI_DEVELOPMENT_DATABASE_PORT}";
export STARTHINKER_UI_DATABASE_NAME="${STARTHINKER_UI_DEVELOPMENT_DATABASE_NAME}";
export STARTHINKER_UI_DATABASE_USER="${STARTHINKER_UI_DEVELOPMENT_DATABASE_USER}";
export STARTHINKER_UI_DATABASE_PASSWORD="${STARTHINKER_UI_DEVELOPMENT_DATABASE_PASSWORD}";
fi