I am trying to speedup rather crappy php, website build on top of cakephp and decided to follow this tutorial, I was seriously annoyed that I can’t get rig of /app/webroot prefix in css/js links. I didn’t want to hack them directly because I am using automatic css/js compression.
It wasn’t until I found this solution from the ticket closed in January I managed to fix it.
Quite surprised that in order to dispatch cakephp app I need to patch the core and there are hundred of unanswered questions/issues about deployment of cakephp without mod_rewrite.
PS. Good start – this is my first day of holiday gone.
Tags:
cakephp,
mod_rewrite,
nginx,
php
I just pushed xtreemfs cookbook to my git repo
This cookbook automates xtreemfs quick start for ubuntu 10.04.
I am using it with vagrant:
config.vm.define : xtreemfs do |xtreemfs_config|
xtreemfs_config.vm.box="base"
xtreemfs_config.vm.provisioner=:chef_solo
xtreemfs_config.vm.forward_port("ssh", 22, 2227,:auto => true)
xtreemfs_config.vm.forward_port("web", 30638, 8080)
xtreemfs_config.vm.network("192.168.100.16")
xtreemfs_config.chef.node_name="xtreemfs"
xtreemfs_config.chef.log_level = :debug
xtreemfs_config.chef.cookbooks_path = ["cookbooks","other_cookbooks"]
xtreemfs_config.chef.run_list.clear
xtreemfs_config.chef.add_recipe("apt")
# xtreemfs_config.chef.add_recipe("tomcat")
xtreemfs_config.chef.add_recipe("xtreemfs::server")
xtreemfs_config.chef.add_recipe("xtreemfs::client")
end
Tags:
chef,
deployment,
sysadmin,
xtreemfs
I found an interesting way of adding apt repository in hadoop cookbook:
execute "apt-get update" do
action :nothing
end
template "/etc/apt/sources.list.d/cloudera.list" do
owner "root"
mode "0644"
source "cloudera.list.erb"
notifies :run, resources("execute[apt-get update]"), :immediately
end
execute "curl -s http://archive.cloudera.com/debian/archive.key | apt-key add -" do
not_if "apt-key export 'Cloudera Apt Repository'"
end
Tags:
chef,
hadoop,
ruby