mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Add missing $REDASH_BASE_PATH usage
This commit is contained in:
parent
51392d0398
commit
8c693efb3e
@ -13,7 +13,7 @@ REDASH_BASE_PATH=/opt/redash
|
||||
REDASH_BRANCH="${REDASH_BRANCH:-master}" # Default branch/version to master if not specified in REDASH_BRANCH env var
|
||||
REDASH_VERSION=${REDASH_VERSION-2.0.0.b2990} # Install latest version if not specified in REDASH_VERSION env var
|
||||
LATEST_URL="https://s3.amazonaws.com/redash-releases/redash.${REDASH_VERSION}.tar.gz"
|
||||
VERSION_DIR="/opt/redash/redash.${REDASH_VERSION}"
|
||||
VERSION_DIR="$REDASH_BASE_PATH/redash.${REDASH_VERSION}"
|
||||
REDASH_TARBALL=/tmp/redash.tar.gz
|
||||
FILES_BASE_URL=https://raw.githubusercontent.com/getredash/redash/${REDASH_BRANCH}/setup/ubuntu/files
|
||||
|
||||
@ -66,16 +66,16 @@ extract_redash_sources() {
|
||||
sudo -u redash wget "$LATEST_URL" -O "$REDASH_TARBALL"
|
||||
sudo -u redash mkdir "$VERSION_DIR"
|
||||
sudo -u redash tar -C "$VERSION_DIR" -xvf "$REDASH_TARBALL"
|
||||
ln -nfs "$VERSION_DIR" /opt/redash/current
|
||||
ln -nfs /opt/redash/.env /opt/redash/current/.env
|
||||
ln -nfs "$VERSION_DIR" $REDASH_BASE_PATH/current
|
||||
ln -nfs $REDASH_BASE_PATH/.env $REDASH_BASE_PATH/current/.env
|
||||
}
|
||||
|
||||
install_python_packages() {
|
||||
pip install --upgrade pip
|
||||
# TODO: venv?
|
||||
pip install setproctitle # setproctitle is used by Celery for "pretty" process titles
|
||||
pip install -r /opt/redash/current/requirements.txt
|
||||
pip install -r /opt/redash/current/requirements_all_ds.txt
|
||||
pip install -r $REDASH_BASE_PATH/current/requirements.txt
|
||||
pip install -r $REDASH_BASE_PATH/current/requirements_all_ds.txt
|
||||
}
|
||||
|
||||
create_database() {
|
||||
@ -83,7 +83,7 @@ create_database() {
|
||||
sudo -u postgres createuser redash --no-superuser --no-createdb --no-createrole
|
||||
sudo -u postgres createdb redash --owner=redash
|
||||
|
||||
cd /opt/redash/current
|
||||
cd $REDASH_BASE_PATH/current
|
||||
sudo -u redash bin/run ./manage.py database create_tables
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user