Created
March 31, 2012 18:21
-
-
Save JangoSteve/2267333 to your computer and use it in GitHub Desktop.
Install mysql with capistrano on Ubuntu server
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
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