-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision-configure.sh
53 lines (37 loc) · 1.34 KB
/
provision-configure.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
#!/bin/bash
# Script to set up install frontend dependancies
# Install NVM and stable node version
curl https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
export NVM_DIR="/home/vagrant/.nvm"
source /home/vagrant/.nvm/nvm.sh
nvm install stable
nvm alias default stable
npm -v
node -v
npm set progress=false
npm install --global pm2 gulp tslint [email protected] webpack-dev-server rimraf webpack
# NPM Install socket.io
pushd bekindred/socketio
pm2 kill
npm install
pm2 start app.js
popd
# NPM Install frontend app dependancies
pushd bekindred/persice_app_final_release
npm install
npm run build:dev
popd
# Script to configure persice backend
export WORKON_HOME=$HOME/.virtualenvs
export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
source /usr/local/bin/virtualenvwrapper.sh
workon bekindred
python -c 'import nltk;nltk.download("punkt")'
python -c 'import nltk;nltk.download("wordnet")'
pip install -r requirements.txt
export DJANGO_SETTINGS_MODULE=bekindred.settings.local
echo "no" | python bekindred/manage.py syncdb
python bekindred/manage.py migrate
python bekindred/manage.py loaddata bekindred/interests/fixtures/interests.json
python bekindred/manage.py loaddata bekindred/interests/fixtures/default_political_vews.json
python bekindred/manage.py loaddata bekindred/interests/fixtures/default_religious_vews.json