Installing Postgresql
These are the step for installing Postgres on your server.
sudo su -
yum install postgresql-client postgresql-server postgresql-devel
chkconfig postgresql on
service postgresql start
gem install postgres
su - postgres
createuser deploy -a -d
exit
If your database.yml uses the postgres adapter, the railsmachine deploy scripts will automatically run postgres commands for the db:setup task, which is normally run as a subtask of the servers:setup task during the 5MinuteDeployment. You may need to adjust the postgres permissions on your server for the task to run successfully.
