$ # Update cache:
$ sudo apt update
$ # Install ruby:
$ sudo apt install ruby ruby-dev zlib1g-dev -y
$ # Install sqlite3:
$ sudo apt install sqlite3 libsqlite3-dev -y
$ # Install node:
$ sudo apt install nodejs -y
$ # Add yarn repository
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee
$ # Update repository cache
$ sudo apt update
$ # Install yarn:
$ sudo apt install yarn -y
$ # Install Rails:
$ sudo gem install rails
$ sudo gem install bundler
Use bundle info [gemname]
to see where a bundled gem is installed.
You can see all of the command line options that the Rails application builder accepts by running rails new -h
.
$ # Create a new project
$ rails new blog
$ # Install webpacker
$ cd blog
$ rails webpacker:install