Skip to content

Instantly share code, notes, and snippets.

@afahitech
Last active October 1, 2020 17:50
Show Gist options
  • Select an option

  • Save afahitech/84f9713344255091a3079fec904fca7f to your computer and use it in GitHub Desktop.

Select an option

Save afahitech/84f9713344255091a3079fec904fca7f to your computer and use it in GitHub Desktop.
How to install Ruby on Rails on Ubuntu 18.04
#!/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
# Youtube https://youtu.be/OzZp4Ps-8lo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment