1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Trying to tune passenger

This commit is contained in:
2016-01-15 04:33:09 +00:00
parent ae59cb2b21
commit c3773d0036
3 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
<VirtualHost *:80>
DocumentRoot /var/www/public
RailsEnv production
PassengerMaxPoolSize 3
RailsAutoDetect off
RailsBaseURI /
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

View File

@@ -2,6 +2,8 @@
<VirtualHost _default_:443>
DocumentRoot /var/www/public
RailsEnv production
PassengerMaxPoolSize 3
RailsAutoDetect off
RailsBaseURI /
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

View File

@@ -70,9 +70,9 @@ ADD ./rails-apache-config.conf /etc/apache2/sites-enabled/000-default.conf
RUN a2ensite default-ssl.conf
# Add apache tuning stuff
RUN echo PassengerMaxPoolSize 3 >> /etc/apache2/apache2.conf
RUN echo PassengerPoolIdleTime 120 >> /etc/apache2/apache2.conf
RUN echo RailsAutoDetect off >> /etc/apache2/apache2.conf
#RUN echo PassengerMaxPoolSize 3 >> /etc/apache2/apache2.conf
#RUN echo PassengerPoolIdleTime 120 >> /etc/apache2/apache2.conf
#RUN echo RailsAutoDetect off >> /etc/apache2/apache2.conf
# By default, simply start apache.
CMD /usr/sbin/apache2ctl -D FOREGROUND