mise的安装过程 安装rails和ruby最新版
mise -v
fei用户安装,不要root用户安装
https://www.centron.de/en/tutorial/install-ruby-on-rails-on-debian-12-complete-guide/
Installing Ruby on Rails on Debian 12 Using Mise
Rails is a free and open-source framework for web applications, developed using the Ruby language. It is based on the Model-View-Controller (MVC) pattern and is designed for creating efficient and dynamic websites. Rails emphasizes the “Convention over Configuration” (CoC) principle and supports features such as routing, data handling, and asset management.
This guide walks you through the process of installing Ruby on Rails on a Debian 12 system. You’ll set up Ruby along with all essential dependencies required to run a basic Rails project.
Prerequisites
You have access to a Debian 12 machine where Ruby on Rails will be installed.
You have configured a domain A record that points to your server’s IP address, for example: app.example.com.
Installing Mise and Ruby Dependencies
Mise is a tool designed to manage Ruby versions and their related dependencies. The following steps explain how to install Mise and set up all necessary components for Ruby.
Step 1: Update the APT Package Index
Start by refreshing your system’s package index:
mise use -g ruby
gem
https://www.centron.de/en/tutorial/install-ruby-on-rails-on-debian-12-complete-guide/