A mon tour de vous annoncer la sortie de Typo 5.2. Cette sortie est la première sortie où je participe activement. En effet, depuis Août dernier, je suis contibuteur de Typo. J’ai d’abord commencé par faire la migration de Typo sur Rails 2.2 (avant même la sortie officiel de Rails 2.2). J’ai ensuite continué avec Frédéric à améliorer au maximum les performances et l’utilisabilité de Typo.
Aujourd’hui avec cette sortie de Typo, le travail est vraiment à la hauteur. Nous avons tout fait pour que cela soit optimum. Mais surtout nous n’avons pas fini. Nous avons ainsi énormément d’idée qui seront intégré dans Typo dans le futur. Nous allons aussi essayé de faire des releases plus régulièrement.
En bonus, voici mon fichier capistrano que j’utilise pour déployer Typo.
set :application, “typo”
set :repository, “git://github.com/fdv/typo”
set :domain, “shingara.fr”
# If you aren’t deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, “/var/rails/blog-typo”
# If you aren’t using Subversion to manage your source code, specify
# your SCM below:
set :scm, :git
set :git_enable_submodules, 1
set :runner, “rails”
set :user, “rails”
set :use_sudo, false
set :thin_conf, “/etc/thin/typo.yml”
role :app, domain
role :web, domain
role :db, domain, :primary => true
task :update_config, :roles => [:app] do
run “ln -s #{shared_path}/config/database.yml #{release_path}/config/database.yml”
run “ln -s #{shared_path}/files #{release_path}/public/files”
run “ln -s #{shared_path}/cache #{release_path}/tmp/cache”
run “ln -s #{shared_path}/newrelic_rpm #{release_path}/vendor/plugins/newrelic_rpm”
run “ln -s #{shared_path}/config/newrelic.yml #{release_path}/config/newrelic.yml”
run “ln -s #{shared_path}/config/agent #{release_path}/config/agent”
run “ln -s #{shared_path}/config/mail.yml #{release_path}/config/mail.yml”
end
task :dump_before, :roles => [:app] do
run “pg_dump -U typoblog typo > #{shared_path}/typo#{Time::today.strftime(‘%Y-%m-%d’)}.sql”
end
namespace :deploy do
task :start, :roles => [:app] do
run “thin -C #{thin_conf} start”
end
task :stop, :roles => [:app] do
run “thin -C #{thin_conf} stop”
end
task :restart, :roles => [:app] do
run “thin -C #{thin_conf} restart”
end
end
after “deploy:update_code”, :update_config
before “deploy:migrations”, :dump_before
English translation