Prepare to deploy RoR app on Ubuntu 12.04


Prepare to deploy RoR app on Ubuntu 12.04

Sat, 20 July 2013 18:30

System Administration, Ruby on Rails

For example: Ubuntu 12.04

1) apt-get update

2) apt-get upgrade

3) apt-get -y install curl git-core python-software-properties

4) apt-get install postgresql libpq-dev

5) sudo -u postgres psql

postgres=# \password
Enter new password:
Enter it again:

6) apt-get install postfix

7) apt-get install nodejs

8) curl -L https://get.rvm.io | bash -s stable

9) rvm install {some_ruby}

10) gem i passenger

11) passenger-install-apache2-module