qpixel icon indicating copy to clipboard operation
qpixel copied to clipboard

Install script

Open Taeir opened this issue 2 years ago • 0 comments

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.

  • [ ] Install
    • [x] Check ruby + version
      • [x] Install ruby (if rbenv/rvm present)
      • [x] Install rbenv (if neither rbenv/rvm present)
    • [ ] Check redis
    • [ ] Check mysql
    • [x] Check required libraries?
  • [ ] Setup
    • [ ] Setup database
    • [ ] Setup redis
    • [x] Setup storage
    • [x] Create initial community
    • [ ] Create initial user

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

Taeir avatar Aug 11 '23 17:08 Taeir