forked from rubensayshi/gw2spidy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
40 lines (35 loc) · 1.05 KB
/
INSTALL
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
# ##########
# install dependacies
# ##########
sudo apt-get update
sudo apt-get -y install curl screen git
sudo apt-get -y install nginx varnish php5-fpm redis-server memcached
sudo apt-get -y install php5-curl php5-gd php5-mysql php5-memcache php-pear
sudo pear channel-discover pear.phing.info
sudo pear install phing/phing
sudo pear install Log
sudo apt-get -y install mysql-server-5.5
# ##########
# setup project
# ##########
mysqladmin -uroot -proot create gw2spidy
mysql -uroot -proot gw2spidy < config/schema.sql
echo -e "myenv\ndev\ndefault" > config/cnf/env
cp config/cnf/example-custom-cnf.json config/cnf/myenv.json
# ##########
# AT THIS POINT YOU NEED TO EDIT config/cnf/myenv.json !!
# ##########
# ##########
# init project
# ##########
php tools/purge-cache.php
php tools/setup-request-slots.php
php daemons/worker-types.php
php tools/purge-cache.php
php daemons/fill-queue-item-db.php
# raw estimate xD
for i in {1..25}; do
php daemons/worker-queue-item-db.php
done
php daemons/fill-queue-item-listing-db.php
php daemons/worker-queue-item-db.php