Moved nginx's and MySQL's logs into the "storage" directory.

This commit is contained in:
Peter Deltchev 2015-09-12 16:49:16 -07:00
parent 86a3248a7c
commit 80eeaa2947
5 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ else
sudo make install
fi
mkdir /vagrant/logs
mkdir /vagrant/storage/logs/system
/vagrant/vagrant/copy-and-restart-configs.sh
cd /vagrant

View file

@ -74,7 +74,7 @@ query_cache_size = 16M
#
# Error log - should be very few entries.
#
log_error = /vagrant/logs/mysql-error.log
log_error = /vagrant/storage/logs/system/mysql-error.log
#
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log

View file

@ -9,8 +9,8 @@ server {
gzip_vary on;
server_name pony.fm.local api.pony.fm.local;
access_log /vagrant/logs/nginx-access.log;
error_log /vagrant/logs/nginx-error.log;
access_log /vagrant/storage/logs/system/nginx-access.log;
error_log /vagrant/storage/logs/system/nginx-error.log;
root /vagrant/public;
location / {
@ -49,4 +49,4 @@ server {
internal;
alias /vagrant-files/;
}
}
}