-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1044 from thoughtworks/improve-vagrant-flow
Improve vagrant flow
- Loading branch information
Showing
4 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
help() { | ||
echo "Usage: " | ||
echo "`basename "$0"` {start, test}" | ||
} | ||
|
||
case "$1" in | ||
start) | ||
vagrant up | ||
vagrant ssh -c "cd /opt/redash/current; bin/run honcho start -f Procfile.dev;" | ||
;; | ||
test) | ||
vagrant up | ||
vagrant ssh -c "cd /opt/redash/current; make test" | ||
;; | ||
*) | ||
help | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/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 | ||
|