| install.sh | ||
| README.md | ||
Reflect installer
Run this script from a git repository to automatically install and configure Reflect as a git submodule to your project.
Important
The script will only run in environments with Bash and
coreutilsinstalled (for now).
Prerequisite
A MariaDB or MySQL server with at least SELECT rights granted to a database table. (SELECT, INSERT, UPDATE, and DELETE rights to this table are required if you wish to manage your Reflect configuration through REST)
Get started
- Create a git repository for your project.
- Create a new empty MariaDB/MySQL database table.
- Run this command from the root directory of your local repository.
curl -fsSL https://codeberg.org/reflect/install/raw/branch/master/install.sh | bash
Arguments
You can pass optional named arguments to this script for headless installation of Reflect.
--overwrite - Overwrite existing configuration files
./install.sh --example=n
Pass --overwrite=y to overwrite all existing Reflect configuration files.
Endpoints
--dir - Installation directory
./install.sh --dir="/path/to/project"
Pass a --dir argument with a value of a directory Reflect should consider its root_path.
--endpoints - Overwrite configuration files
./install.sh --endpoints="api"
Pass an --endpoints argument with a value of a directory relative to root_path where Reflect endpoint directories are stored.
Database
--db - Reflect database table
./install.sh --db="reflect"
Pass a --db argument with a value of a database table that Reflect should use.
--host - Reflect database hostname
./install.sh --host="/path/to/project"
Pass a --host argument with a value of a fully qualified hostname that Reflect should use when connecting to you MariaDB/MySQL server.
--user - Reflect database user
./install.sh --user="www-data"
Pass a --user argument with a value of a username that Reflect should use when connecting to you MariaDB/MySQL server.
--password - Reflect database user
./install.sh --password="mypassword"
Pass a --password argument with a value of a password that Reflect should use when connecting to you MariaDB/MySQL server.
./install.sh --password=null
Pass "null" to this argument to disable password authentication
Database seeding
--db - Reflect database table
./install.sh --db="reflect"
Pass a --db argument with a value of a database table that Reflect should use.
--seed_host - Reflect database hostname
./install.sh --seed_host="/path/to/project"
Pass a --host argument with a value of a fully qualified hostname that will be used by this script to seed the database.
--seed_user - Reflect database user
./install.sh --seed_user="www-data"
Pass a --user argument with a value of a username that will be used by this script to seed the database.
--seed_password - Reflect database user
./install.sh --seed_password="mypassword"
Pass a --password argument with a value of a password that will be used by this script to seed the database.
./install.sh --seed_password=null
Pass "null" to this argument to disable password authentication