This tutorial will take you through the Ruby and Rails installation process via rbenv.
To follow this tutorial, you need to have one Ubuntu 16.04 server with a non-root user. You should complete these steps from the user account from which you plan to run Ruby.
We will also install the bundler gem to manage application dependencies: If you would like to install a specific version of Rails, you can list the valid versions of Rails by doing a search, which will output a long list of possible versions.
We have covered the basics of how to install rbenv and Ruby on Rails here so that you can use multiple Ruby environments.
For your next steps, you can learn more about making those environments more robust.
Ruby on Rails is one of the most popular application stacks for developers looking to create sites and web apps.
The Ruby programming language, combined with the Rails development framework, makes app development simple.
You can install My SQL server and client from Homebrew: # To have launchd start postgresql at login: ln -sfv /usr/local/opt/postgresql/*plist ~/Library/Launch Agents # Then to load postgresql now: launchctl load ~/Library/Launch Agents/postgresql.plistrails new myapp #### If you want to use My SQL rails new myapp -d mysql #### If you want to use Postgres # Note you will need to change config/database.yml's username to be # the same as your OSX user account.