Created attachment 382790 [details] Sample config We should use memcached in prod. Pleases create web/application/config/cache.php and update it's memcached settings. This is standard Kohana Cache settings, you can see similar ones one stage/prod of crash-stats. I know prod uses 3 memcached servers. Attached is a blank config.
Attachment #382790 - Attachment mime type: application/octet-stream → text/plain
How do I point it to a memcache server?
If it's one server on localhost default port. It will work automagically. Otherwise - please refer to Aravind or a crash-stats config. I've only done this for the default setup. Sorry.
Created attachment 382818 [details] 2nd config file for memcache server Actually I forgot... I DO know how this works. Attached is a second config. Place this in the same dir.
Which filename do I use for the 2nd config? Can I combine the two?
no. please end up with mozillaservice.org/trunk/web/application/config/cache.php mozillaservice.org/trunk/web/application/config/cache_memcache.php cache.php sets the "driver" to memcache then the driver config is loaded - cache_memcache.php Sorry for the confusion.
Done. We should probably have .dist files for all these configs checked in to svn. Also, I've had to locally modify: M bin/update-metrics.sh M web/application/config/routes.php M web/application/config/config.php M web/index.php We should probably remove those from svn and move them to dir/filename.dist, so they don't end up conflicting down the road.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Thanks much! (In reply to comment #6) I have been updating the INSTALL.txt and have an environment.php-prod I'm waiting to check-in. But I don't understand your 4 edits. What did you have to change? What can I do to help? Do you want to send me a diff and I will create -dist files?
Turns out only 2 of the files have actual changes: Index: bin/update-metrics.sh =================================================================== --- bin/update-metrics.sh (revision 27629) +++ bin/update-metrics.sh (working copy) @@ -1,4 +1,4 @@ #!/bin/bash -export CRON_PATH=/home/moservice/mozillaservice.org +export CRON_PATH=/data/www/mozillaservice.org export PYTHONPATH=$CRON_PATH/bin Index: web/application/config/config.php =================================================================== --- web/application/config/config.php (revision 27629) +++ web/application/config/config.php (working copy) @@ -4,7 +4,7 @@ * then a full URL will be used, eg: http://localhost/kohana/. If it only includes * the path, and a site_protocol is specified, the domain will be auto-detected. */ -$config['site_domain'] = 'takeaction.ubuntu'; +$config['site_domain'] = 'mozillaservice.stage.mozilla.com'; /** * Force a default protocol to be used by the site. If no site_protocol is
Okay, will do. I imagine you have some other processes for Sekrit stuff.
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.