Ruby 3.3
First install rbenv
:
# MacOS
brew install rbenv mupdf nodejs
# Ubuntu Linux
sudo apt install rbenv libyaml-dev libvips-dev mupdf nodejs
# Arch Linux
sudo yay -S rbenv base-devel libyaml libvips mupdf tesseract-data-eng nodejs
Then install rbenv
:
rbenv init
# Now follow its instructions to complete the installation.
Go into your project and write the following commands:
rbenv install 3.3.6
rbenv local 3.3.6
Run ruby --version
to verify that its now on version 3.3.6
.
Now go to Gem configuration to continue.
Set up where gems should be installed, then install the dependencies.
bundle config set --local path vendor/bundle
bundle install
Initializes and migrates the database (sqlite) to the latest revision available in the project.
bin/rails db:create
bin/rails db:migrate
For testing, there is some example data already generated for you in
db/seeds.db
. To use it write the following.
bin/rails db:seed
Further, there is a huge amount of premade labels inside credentials.yml.enc
,
which you can access if you have configured config/master.key
. Ask frequent
contributors for this file if you need these premade labels. These labels may
also be used in production.
bin/rails db:custom_seed
bin/rails server
See PRODUCTION.md
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
...