mirror of
https://github.com/getredash/redash.git
synced 2026-03-23 04:00:09 -04:00
Because some dependencies were missing and we dont really need everything in the file...just pymongo Also removed unneeded files, reverted circle.yml to as it is on redash, so it doesnt show in the PR diff
23 lines
545 B
Bash
Executable File
23 lines
545 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
|
|
cd /opt/redash/current
|
|
cp /opt/redash/.env /opt/redash/current
|
|
cd /opt/redash/current/rd_ui
|
|
bower install
|
|
cd /opt/redash/current
|
|
|
|
#install requirements
|
|
sudo pip install -r /opt/redash/current/requirements_dev.txt
|
|
sudo pip install -r /opt/redash/current/requirements.txt
|
|
sudo pip install pymongo==3.2.1
|
|
|
|
#update database
|
|
bin/run ./manage.py database drop_tables
|
|
bin/run ./manage.py database create_tables
|
|
bin/run ./manage.py users create --admin --password admin "Admin" "admin"
|
|
|
|
#Purge Redis cache
|
|
redis-cli -n 1 FLUSHALL
|
|
|