- /var/www/$PROJECTS/
- .git/
- public/
- html など
- scripts/
- gitpull.sh
chown -R apache:apache - /var/www/$PROJECTS
#! /bin/sh | |
echo -ne "Content-Type: text/plain; charset=UTF-8\r\n\r\n" | |
cd /var/www/$PROJECTS | |
git pull |
<VirtualHost *:80> | |
ServerName example.com | |
DocumentRoot /var/www/$PROJECTS/public | |
<Directory "/var/www/$PROJECTS/public"> | |
Options -Indexes FollowSymLinks | |
order deny,allow | |
deny from ALL | |
allow from ALL | |
AllowOverride All | |
</Directory> | |
ScriptAlias /scripts/ "/var/www/$PROJECTS/scripts/" | |
<Directory "/var/www/$PROJECTS/scripts/"> | |
AllowOverride None | |
Options None | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |