Created
May 26, 2011 02:42
-
-
Save miguelperez/992436 to your computer and use it in GitHub Desktop.
Setting an Ubuntu 10.04 server for RoR
This file contains hidden or 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
| Ubuntu 10.04 | |
| -- install ruby dependencies | |
| sudo apt-get install curl build-essential git-core zlib1g-dev libssl-dev libreadline5-dev libcurl4-openssl-dev | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| -- install RVM | |
| sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
| echo '[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
| source .bash_profile | |
| If configuration and installation was performed correctly, this command should output 'rvm is a function': | |
| user$ type rvm | head -1 | |
| See if there are any dependencies for your operating system by running: | |
| user$ rvm notes | |
| -- install ruby enterprise edition | |
| rvm install ree | |
| -- set the ree as the default environment | |
| rvm default ree | |
| -- install and configure passenger | |
| gem install passenger | |
| passenger-install-apache2-module | |
| -- install mysql | |
| sudo apt-get install mysql-server-5.1 | |
| -- install image-magick | |
| sudo apt-get install imagemagick --fix-missing | |
| ------- Useful commands | |
| -- restart apache | |
| sudo /etc/init.d/apache2 restart | |
| -- restart mysql | |
| sudo service mysql restart | |
| -- restart nginx | |
| sudo /etc/init.d/nginx restart | |
| ------- SET GIT PROPERLY | |
| -- create ssh keys | |
| cd ~/.ssh | |
| ssh-keygen -t rsa -C "your_email@youremail.com" | |
| Now we copy the public key to github. | |
| cat id_rsa.pub | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment