codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Install script #1174

Open Taeir opened 1 year ago

Taeir commented 1 year ago

This PR aims to make quick setup of a development/production environment for QPixel easier by providing an extensive install script, which leads the user through the various parts of the installation.

Examples

Installing Ruby

❌ Ruby: not found
We recommend installing ruby using rbenv
Do you want to install rbenv now? [y/n] y

 --- INSTALLING RBENV ---

...

All done!
Note that this installer does NOT edit your shell configuration files:
1. Run `rbenv init' to view instructions on how to configure rbenv for your shell.
2. Launch a new terminal window after editing shell configuration files.

 ------------------------

✅ Ruby - rbenv: installed rbenv

🔶 To finish the setup of rbenv, run the following command and follow its instructions:

  rbenv init

After doing so, please close your terminal and open a new one, then rerun this install command.

Next run

❌ Ruby: not found
🔶 Ruby: detected rbenv
Do you want to install the latest ruby 3.x version using rbenv now? [y/n] y

 --- INSTALLING RUBY 3.2.2 USING RBENV ---

...

 -----------------------------------------

✅ Ruby - rbenv: installed ruby 3.2.2
✅ Ruby - rbenv: set ruby 3.2.2 as default for QPixel