This README provides instructions for setting up and running the application.
Things you may want to cover:
- System dependencies
This project is designed to be compatible with standard Oracle Linux 9.3 packages and repositories. We are committed to supporting the latest versions of Oracle Linux to the best of our ability. Any updates to the project will ensure compatibility with the newest releases of Oracle Linux.
While Oracle Linux is the recommended environment, you have the flexibility to use any Linux distribution according to your preferences.
-
Ruby version
ruby 3.1.2p20
-
Bundle version
bundle-2.3.7
-
System configuration
System update and install needed instruments:
sudo dnf update
sudo dnf config-manager --enable ol9_codeready_builder
sudo dnf install git make gcc curl nano ruby ruby-devel libyaml-devel
Install redis
sudo dnf install redis
sudo systemctl start redis
sudp systemctl enable redis
If used with WSL2, need to enable systemd
:
sudo nano /etc/wsl.conf
Write there
[boot]
systemd=true
Install MySQL
sudo dnf install sqlite-devel mysql-server mysql-devel
sudo systemctl start mysqld
sudp systemctl enable mysqld
sudo mysql_secure_installation
Need to create MySQL user
mysql -u root -p
CREATE USER 'dbadmin'@'localhost' IDENTIFIED BY 'dbpassword';
GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'localhost';
Configure ENV variables for sidekiq admin panel and restart shell
export SIDEKIQ_USERNAME="admin"
export SIDEKIQ_PASSWORD="admin"
Install project
git clone https://github.com/Kagayakashi/cloud_mu_online.git
cd cloud_mu_online/
bundle config set --local path 'vendor/bundle'
bundle install
- Create project database
bin/rails db:create
- Install database migrations
bin/rails db:migrate
- Insert initial data into database
bin/rails db:seed
- How to run the application
bin/rails s
- How to run the test suite
bin/rails test
- Services (job queues, cache servers, search engines, etc.) Start background job runner Sidekiq
bundle exec sidekiq
- ...