-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathinstall_osx.sh
executable file
·45 lines (33 loc) · 989 Bytes
/
install_osx.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
#!/bin/bash
# Install HomeBrew
if [ -x "$(brew)" ]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew install postgresql
# brew services postgresql start
brew install redis
# brew services redis-server start
brew install python3
pip install virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
rmvirtualenv zenhub_cycle_time
mkvirtualenv --python=$(which python3.6) zenhub_cycle_time
workon zenhub_cycle_time
setvirtualenvproject
pip install -r requirements/base.txt
echo "DEBUG = True" > zenhub_charts/settings_local.py
echo "Github token: "
read github_token
echo "Github username or organization name: "
read user
echo "Zenhub token: "
read zenhub_token
cat >zenhub_charts/credentials.py <<EOL
GITHUB = {'token': '$github_token', 'owner': '$user'}
ZENHUB = {'token': '$zenhub_token'}
EOL
dropdb zenhub_charts
createdb zenhub_charts
./manage.py migrate
./manage.py fetch --initial
./manage.py runserver