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
f360a67f
Commit
f360a67f
authored
9 years ago
by
Owain Jones
Browse files
Options
Download
Email Patches
Plain Diff
add memcached and imagick install stuff
parent
f06555de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
deploy.sh
deploy.sh
+21
-0
install.sh
install.sh
+5
-0
No files found.
deploy.sh
View file @
f360a67f
...
...
@@ -80,6 +80,27 @@ echo "export BOWERPHP_TOKEN=$GITHUB_API_KEY" >> ~/.bashrc
composer config
-g
github-oauth.github.com
$GITHUB_API_KEY
export
BOWERPHP_TOKEN
=
$GITHUB_API_KEY
# Setup memcache and imagick
cd
/home/gliders/code
git clone
'https://github.com/php-memcached-dev/php-memcached.git'
cd
php-memcached
phpize
./configure
make
&&
sudo
make
install
echo
'extension=memcached.so'
>>
memcached.ini
sudo cp
memcached.ini /etc/php.d/
cd
/home/gliders/code
git clone
'https://github.com/mkoppanen/imagick.git'
cd
imagick
phpize
./configure
make
sudo
make
install
echo
'extension=imagick.so'
|
sudo tee
-a
/etc/php.d/imagick.ini
sudo
systemctl restart php-fpm
# Deploy the website
cd
/home/gliders/code/gliders-website
sh bin/deploy.sh /var/gliders/www_dev dev
...
...
This diff is collapsed.
Click to expand it.
install.sh
View file @
f360a67f
...
...
@@ -174,6 +174,11 @@ echo '::1 dev.gliders.localhost gliders.localhost' >> /etc/hosts
# cp hhvm.service /etc/systemd/system/
# systemctl enable hhvm
# Install memcached
yum
install
-y
memcached memcached-devel libmemcached-devel
systemctl
enable
memcached
systemctl start memcached
# Create gliders dirs and allow the webserver to read/write to them
# (Mostly this sets up SELinux rules)
mkdir
-p
/var/gliders/www_dev /var/gliders/www /var/gliders/incoming /var/gliders/logs /var/gliders/static /var/gliders/daemon/logs
...
...
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