Commit 0632468c authored by Owain Jones's avatar Owain Jones
Browse files

swapped memcached for redis. another php extension to be compiled.

parent eb55a9cf
......@@ -100,6 +100,15 @@ make
sudo make install
echo 'extension=imagick.so' | sudo tee -a /etc/php.d/imagick.ini
cd /home/gliders/code
git clone -b php7 https://github.com/phpredis/phpredis.git
cd phpredis
phpize
./configure
make
sudo make install
echo 'extension=redis.so' | sudo tee -a /etc/php.d/redis.ini
sudo systemctl restart php-fpm
# Deploy the website
......
......@@ -95,6 +95,11 @@ server {
alias /var/gliders/static;
}
location /static/tracks {
alias /var/gliders/static/tracks;
gzip_static on;
}
location /static/images {
access_log off;
error_log off;
......
......@@ -107,6 +107,11 @@ server {
add_header Cache-Control "public";
}
location /static/tracks {
alias /var/gliders/static/tracks;
gzip_static on;
}
location /realtime {
proxy_pass http://localhost:9002/;
proxy_read_timeout 10m;
......
......@@ -175,9 +175,15 @@ echo '::1 dev.gliders.localhost gliders.localhost' >> /etc/hosts
# systemctl enable hhvm
# Install memcached
yum install -y memcached memcached-devel libmemcached-devel
systemctl enable memcached
systemctl start memcached
#yum install -y memcached memcached-devel libmemcached-devel
# systemctl enable memcached
#systemctl start memcached
# Redis is newer, and used by Sentry.
# memcached no longer even receives maintenance updates.
yum install -y redis
systemctl enable redis
systemctl start redis
# Create gliders dirs and allow the webserver to read/write to them
# (Mostly this sets up SELinux rules)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment