This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbg:tracer(). | |
dbg:p(all, c). | |
dbg:tpl(boss_router, x). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf cb_admin && git clone git://github.com/evanmiller/cb_admin.git && cd cb_admin && vi boss.config && ./rebar compile && cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name localhost; | |
root /var/www/; | |
# Enable compression, this will help if you have for instance advaggΓÇÄ module | |
# by serving Gzip versions of the files. | |
gzip_static on; | |
location = /favicon.ico { | |
log_not_found off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name example.com www.example.com; | |
root /var/www/example; | |
# Enable compression, this will help if you have for instance advaggΓÇÄ module | |
# by serving Gzip versions of the files. | |
gzip_static on; | |
location = /favicon.ico { | |
log_not_found off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Edits to /etc/php5/fpm/pool.d/www.conf | |
;listen = 127.0.0.1:9000 | |
listen = /var/run/php-fpm.sock | |
pm.max_requests = 5000 | |
Edits to /etc/php5/fpm/php.ini | |
cgi.fix_pathinfo=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setup tomcat 7 [task was already done]) | |
download solr wget http://mirror.nexcess.net/apache/lucene/solr/4.4.0/solr-4.4.0.tgz | |
following http://calibrate.be/labs/create-multi-core-solr-4-service-running-tomcat-6-ubuntu-1204-lts (same approach works for tomcat7) | |
except not multicore, so: | |
cp /var/www/example.com/sites/all/modules/apachesolr/solr-conf/solr-4.x/* solr/collection1/conf/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pre-req: | |
apt-get install libpcre3-dev | |
pecl install apc | |
drush dl apc | |
edit /etc/php5/apache2/php.ini add: | |
extension=apc.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ echo Enabling hosting-queued daemon | |
Enabling hosting-queued daemon | |
+ su -s /bin/sh aegir -c drush @hostmaster pm-enable -y hosting_queued | |
Table 'vagrantlocal.access' doesn't exist [warning] | |
query: SELECT 1 FROM access WHERE type = 'host' AND | |
LOWER('127.0.0.1') LIKE LOWER(mask) AND status = 0 LIMIT 0, | |
1 database.mysqli.inc:134 | |
Table 'vagrantlocal.cache' doesn't exist [warning] | |
query: SELECT data, created, headers, expire, serialized FROM cache | |
WHERE cid = 'variables' database.mysqli.inc:134 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
olark('api.chat.onCommandFromOperator', function(event) { | |
if (event.command.name == 'resolution') { | |
olark('api.visitor.updateCustomFields', {customerResolution: event.command.body}); | |
} | |
}); |