Ruby on Rails

By- True Vision (Version Ubuntu 20.04)



A web application framework that includes everything needed to create a database-backed web application according to the Model-View-Controller (MVC) pattern.

Software Included

Getting started after deploying Ruby on Rails

Because Ruby will be configured to use vendored bundles, use the rails user to interact with the default project via sudo -i -u rails

In addition to the package installation, the One-Click also:

1- Enables the UFW firewall to allow only SSH (port 22, rate limited), HTTP (port 80), and HTTPS (port 443) access.

2- Creates a rails system user which deploys the application.

3- Creates a rails database user which the application uses to connect to PostgreSQL.

4- Configures Ruby to use vendored bundles and installs all Gems and processes locally to the rails user.

5- Configures Nginx to forward requests to a local UNIX socket, acting as a reverse proxy for the application server.After you create a Ruby on Rails One-Click VM:

6- You can view the Rails site by visiting the VM’s IP address in your web browser. It takes a moment for the installation to complete, so if it doesn’t appear immediately, wait a minute and reload the page.

7- The message of the day (MOTD) will show the system and database user passwords, which are also saved in /root/.digitalocean.passwords.

8- The MOTD will also show you SFTP credentials that you can use to upload files using software like FileZilla, WinSCP, or rsync.

9- The unit file for Rails is /etc/systemd/system/rails/service.To manage the Rails site, log into the Droplet via SSH as root using either the password emailed to you or with an SSH key, if you added one during creation.The application server, Puma, is managed by Systemd, so you can use the systemctl command to start, stop, restart, and check the status of Puma. For example, systemctl restart rails.service will restart it. Because Ruby will be configured to use vendored bundles, use the rails user to interact with the default project via sudo -i -u rails.

Support Details

Supported By: True Vision Groups

Support Email: