Skip to content

Instantly share code, notes, and snippets.

@JangoSteve
Created March 31, 2012 18:21
Show Gist options
  • Save JangoSteve/2267333 to your computer and use it in GitHub Desktop.
Save JangoSteve/2267333 to your computer and use it in GitHub Desktop.
Install mysql with capistrano on Ubuntu server
namespace :slicehost do
# The following will install mysql with default user/pw.
# Be sure to setup proper user/pw via mysql.
desc "Install MySQL"
task :install_mysql, :roles => :app do
apt_quiet_install('mysql-server libmysql-ruby')
#sudo "apt-get install mysql-server libmysql-ruby -y"
end
desc "Install MySQL Rails Bindings"
task :install_mysql_bindings, :roles => :app do
apt_quiet_install('libmysql-ruby1.8 libmysqlclient15-dev')
#sudo "aptitude install libmysql-ruby1.8 libmysqlclient15-dev -y"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment