Skip to content

Instantly share code, notes, and snippets.

@SerheyDolgushev
Last active February 10, 2021 13:47
Show Gist options
  • Save SerheyDolgushev/4cdb78539ce4ad11aab9f7de51538f68 to your computer and use it in GitHub Desktop.
Save SerheyDolgushev/4cdb78539ce4ad11aab9f7de51538f68 to your computer and use it in GitHub Desktop.
Install Ibexa DXP oss
#!/usr/bin/env bash
PROJECT_PATH=${1-~/Projects/ibexa/331}
IBEXA_VERSION=${2-"v3.3.1"}
DATABASE_NAME=${3-ibexa331}
# Create new ibexa/website-skeleton project via composer
composer create-project ibexa/website-skeleton "${PROJECT_PATH}"
cd "${PROJECT_PATH}"
# Install ibexa/oss via composer
composer require ibexa/oss:"${IBEXA_VERSION}"
# Adjust local configurations
echo DATABASE_URL=\"mysql://root@127.0.0.1:3306/${DATABASE_NAME}\" > .env.local
# Init GIT to be able install the recipes
git init; git add . > /dev/null; git commit -m "Init" > /dev/null
# Install ibexa/oss flex recipes
composer recipes:install ibexa/oss --force --no-interaction
# Create db and update search index
php bin/console ibexa:install
# Generate GraphQL schemas
php bin/console ibexa:graphql:generate-schema
# Run composer post-install scripts
composer run post-install-cmd
# Start local webserver
php -S 127.0.0.1:8000 -t public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment