Last active
September 2, 2022 17:01
-
-
Save WillSams/66ffca41f5fd0f079d3204145ebe8a0b to your computer and use it in GitHub Desktop.
My Ruby-on-Rails development environment
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
#The "official" way on gorails has issues if Ruby is already installed. So, use the rvm method | |
mkdir ruby-dev && cd ruby-dev | |
sudo bash -c "apt update" | |
sudo bash -c "apt install gnupg2" | |
ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin | |
gpg2 --keyserver hkp://keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm #whenver we want to work with rails or rubygems, we'll need to start from here | |
rvm install 2.5.0 | |
rvm use 2.5.0 --default | |
ruby -v #note, if you aren't sure you are running within rvm instead of /usr/bin, execute 'which ruby' to see | |
gem install bundler | |
gem install rails -v 5.1.4 | |
rails -v | |
# NOTE: To view Rails API documentation, execute 'gem server' and browse to http://localhost:8808 | |
################################## OTHER TEXT EDITORS (OPTIONAL INSTALLS) ########################## | |
# I favor using the Xed text editor (with side pane) and a couple of open command windows open. It has | |
# syntax highlighting for many languages so that's pretty much all I need. I love what Atom provides out | |
# due to my years of using Visual Studio I'm finding have less need for IDE like features. | |
# However, these are all the other options I looked at. | |
# OPTION 1 - Atom, lightweight but powerful code editor | |
wget https://atom.io/download/deb -O atom-amd64.deb | |
sudo dpkg -i atom-amd64.deb | |
sudo apt install -f | |
gem install rsense #for auto-complete package to work in Atom | |
apm install platformio-ide-terminal #for terminal window in Atom. Open with [CTRL] + ` | |
# OPTION 2 - Edgecase's VIM config just in case you like usig VIM (Atom is over kill for simple scripts) | |
git clone [email protected]:edgecase/vim-config.git | |
cd vim-config | |
rake #this may take a while to complete | |
vim | |
:NeoBundleClean #if you have previously used this EdgeCase Vim config) | |
:NeoBundleInstall #this may take a while to complete as well | |
# OPTION 2 - Alternatively, Aptana Studio as an IDE | |
# wget https://github.com/aptana/studio3/releases/download/v3.6.1/Aptana_Studio_3_Setup_Linux_x86_64_3.6.1.zip | |
# sudo unzip Aptana_Studio_3_Setup_Linux_x86_64_*.zip -d /opt | |
# sudo chown -R root:root /opt/Aptana_Studio_3/ | |
# sudo ln -s /opt/Aptana_Studio_3/AptanaStudio3 /usr/local/bin/AptanaStudio3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment