Created
July 29, 2014 07:58
-
-
Save chebykin/7652ac8f9ad1c8850f37 to your computer and use it in GitHub Desktop.
Install Rails on Ubuntu cheat-sheet
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
Install Rails on Ubuntu cheat-sheet: | |
1. install plain ubuntu 14.04 | |
2. if you installing virtual machine like vmware, first thing todo: | |
sudo apt-get install openssh-server | |
3. install next packages: | |
sudo apt-get install git vim g++ make libssh-dev curl libsqlite3-dev | |
4. install ruby version manager rvm: | |
curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
5. install latest ruby version (versions list is available through ```rbenv install -l```). for ex | |
rbenv install 2.1.2 | |
6. switch globally to installed version | |
rbenv global 2.1.2 | |
7. install rcm (dotfiles manager) https://github.com/thoughtbot/rcm | |
wget https://thoughtbot.github.io/rcm/debs/rcm_1.2.3-1_all.deb | |
sudo dpkg -i rcm_1.2.3-1_all.deb | |
8. install ThoughtBot dotfiles as base from home directory | |
git clone git://github.com/thoughtbot/dotfiles.git | |
rcup -d dotfiles -x README.md -x LICENSE -x Brewfile | |
7. install rails gem | |
gem install rails | |
9. in home path create `projects` directory and keep all projects here | |
mkdir projects | |
cd projects | |
10. in ```projects``` directory create new rails app | |
rails new app_name | |
11. run app | |
cd app_name | |
rails s | |
app will be running on port 3000 by default | |
[Optional stuff] | |
*. Configure samba access to project folder(to work with IDE like IDEA) https://help.ubuntu.com/community/Samba/SambaServerGuide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment