forked from geekodour/pinterest-dashbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstalldeps.sh
41 lines (34 loc) · 862 Bytes
/
installdeps.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
#!/bin/bash
apt-get update
#apt-get install -y libfontconfig rabbitmq-server python3-pip git
apt-get install -y libfontconfig git python3-pip
getPhantom(){
cd /usr/bin/
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xvf phantomjs-2.1.1-linux-x86_64.tar.bz2
cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs .
cd ~
}
getPhantom
#pip3 install virtualenv
git clone https://github.com/geekodour/pinterest-dashbot.git
installDeps(){
cd pinterest-dashbot/
pip3 install -r requirements.txt
}
installDeps
#genEnv(){
#cd pinterest-dashbot/
#virtualenv env
#. env/bin/activate
#pip install -r requirements.txt
#deactivate
#}
#genEnv
#setupRabbit(){
#rabbitmqctl add_user pin pinpin
#rabbitmqctl add_vhost pinvh
#rabbitmqctl set_user_tags pin pintag
#rabbitmqctl set_permissions -p pinvh pin ".*" ".*" ".*"
#}
#setupRabbit