Skip to content

Instantly share code, notes, and snippets.

@CloudLinuxDeveloper
Created June 10, 2020 10:36
Show Gist options
  • Save CloudLinuxDeveloper/715190464d9c11a2874b1eec5d0fbdff to your computer and use it in GitHub Desktop.
Save CloudLinuxDeveloper/715190464d9c11a2874b1eec5d0fbdff to your computer and use it in GitHub Desktop.
How to install Ruby on Rails on Ubuntu
#!/bin/sh
# Install Rails & Ruby
gem install rails
gem update --system
sudo apt-get install ruby-dev zlib1g-dev liblzma-dev
gem install rails
apt install ruby
rails new myapp
cd myapp/
bundle install
apt install ruby-bundler
bundle install
bin/rails server
exit
# Go to http://localhost:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment