Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
0632468c
Commit
0632468c
authored
8 years ago
by
Owain Jones
Browse files
Options
Download
Email Patches
Plain Diff
swapped memcached for redis. another php extension to be compiled.
parent
eb55a9cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
3 deletions
+28
-3
deploy.sh
deploy.sh
+9
-0
gliders.nginx.conf
gliders.nginx.conf
+5
-0
gliders.nginx.prod.conf
gliders.nginx.prod.conf
+5
-0
install.sh
install.sh
+9
-3
No files found.
deploy.sh
View file @
0632468c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
gliders.nginx.conf
View file @
0632468c
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
gliders.nginx.prod.conf
View file @
0632468c
...
...
@@ -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
10
m
;
...
...
This diff is collapsed.
Click to expand it.
install.sh
View file @
0632468c
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment