Server config below. Startting with Ubuntu 22.04LTS. Install Nginx and set SSL certificates Install Nginx sudo apt install nginx Open firewall ports sudo ufw allow 'Nginx HTTP' Set up Ngi...
This is an example of a systemd service file for starting a Ruby on Rails app automatically. File location is /etc/systemd/system [Unit]Description=ror-app-nameAfter=network.target [Service]Type=si...
Routes - lowercase, with underscores as needed between words Controllers - CamelCase, plural, and append the word "Controller" at the end. Model Class - Singular with the first letter of ...
Change a database column from string to decimal rails g migration change_tfi_to_string_in_master_grants class change_tfi_to_decimal_in_MasterGrants < ActiveRecord::Migration[7.1] def change e...