From 39ae044ba58ecc49b7cd087dbe9c2bbcccfa2c6d Mon Sep 17 00:00:00 2001 From: Owain Jones <owanes@noc.ac.uk> Date: Fri, 22 Jan 2016 17:32:08 +0000 Subject: [PATCH] changes to gliders.nginx.conf to allow access to more content in /var/gliders/static --- gliders.nginx.conf | 12 ++++++------ install.sh | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gliders.nginx.conf b/gliders.nginx.conf index b97ec16..70c1523 100644 --- a/gliders.nginx.conf +++ b/gliders.nginx.conf @@ -53,8 +53,8 @@ server { alias /var/gliders/logs; } - location /var/gliders/logs { - alias /var/gliders/logs; + location /static { + alias /var/gliders/static; } location @rewriteapp { @@ -112,8 +112,8 @@ server { alias /var/gliders/logs; } - location /var/gliders/logs { - alias /var/gliders/logs; + location /static { + alias /var/gliders/static; } location @rewriteapp { @@ -169,8 +169,8 @@ server { alias /var/gliders/logs; } - location /var/gliders/logs { - alias /var/gliders/logs; + location /static { + alias /var/gliders/static; } location @rewriteapp { diff --git a/install.sh b/install.sh index cdb0ffe..287ac48 100644 --- a/install.sh +++ b/install.sh @@ -61,6 +61,11 @@ cp php-d-fpm.ini /etc/php.d/fpm.ini cp php-fpm-www.conf /etc/php-fpm.d/www.conf systemctl enable php-fpm +# Install NodeJS, NPM, Bower +yum install nodejs npm +npm install -g bower +npm install -g grunt-cli + # As for the webserver -- either apache or nginx... # nginx is nice and fast, apache gets better support from # CentOS etc. -- GitLab