Created
June 10, 2020 10:36
-
-
Save CloudLinuxDeveloper/715190464d9c11a2874b1eec5d0fbdff to your computer and use it in GitHub Desktop.
How to install Ruby on Rails on Ubuntu
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
#!/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