mirror of
https://codeberg.org/vegvisir/install.git
synced 2025-09-13 16:23:42 +02:00
Install script for the Vegvisir web framework.
Composer packages should still be installed even if the `--install=n` flag is set. The only thing "--install=n" won't do is download and add git submodules Reviewed-on: https://codeberg.org/vegvisir/install/pulls/9 |
||
---|---|---|
install.sh | ||
README.md |
Vegvisir installer
Run this script from a git repository to automatically install and configure Vegvisir as a git submodule to your project.
Important
The script will only run in environments with Bash and
coreutils
installed (for now).
Get started
- Create a git repository for your project.
- Run this command from the root directory of your local repository.
curl -fsSL https://codeberg.org/vegvisir/install/raw/branch/master/install.sh | bash
Arguments
You can pass optional named arguments to this script for headless installation of Vegvisir.
--install
- Don't install, only configure Vegvisir
./install.sh --install=n
Pass --install=n
to prevent download and installation of the Vegvisir git submodule. Use this option if you're version controlling Vegvisir from your project repository.
--dir
- Installation directory
./install.sh --dir="/path/to/project"
Pass a --dir
argument with a value of a directory Vegvisir should consider its root_path
.
--overwrite
- Overwrite configuration files
./install.sh --overwrite=y
Pass --overwrite=y
to replace existing Vegvisir configuration files.
--example
- Generate example website
./install.sh --example=n
Pass --overwrite=n
to disable generation of an example website after installation.