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 sudo make install
fi fi
mkdir /vagrant/logs mkdir /vagrant/storage/logs/system
/vagrant/vagrant/copy-and-restart-configs.sh /vagrant/vagrant/copy-and-restart-configs.sh
cd /vagrant cd /vagrant

View file

@ -74,7 +74,7 @@ query_cache_size = 16M
# #
# Error log - should be very few entries. # 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 # Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log #log_slow_queries = /var/log/mysql/mysql-slow.log

View file

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