Starraider / site-introduction

Introduction Package Development Environment on #DDEV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

DDEV Setup

To use this repository we recommend to use ddev as environment. Please download and install DDEV https://github.com/drud/ddev/releases.

[LINUX] Change permissions of ./var to 0777 (chmod 0777 ./var/cache) on host

  • ddev start
  • ddev import-db --src=./data/db.sql
  • ddev import-files --src=./assets
  • ddev composer install

Frontend

Credentials Backend

Admin Tools

Executing Commands

If you need to execute commands like composer or bin/typo3 you need to run these commands within the ddev containers. You can easily log into the web container by executing the command ddev ssh. Its also possible to run commands within the container without the need to log into it.

  • Composer Install: ddev exec composer install
  • Database Export: ddev exec php bin/typo3 ddev:exportdb

Execute acceptance tests

The ddev setup comes with a selenium-chrome container, codeception and some acceptance tests ready to run.

  • Run tests: ddev exec bin/codecept run acceptance -d -c Tests/codeception.yml

Environment Variables

This setup is preconfigured to work with ddev. If you plan to use this setup in a different context, please create a .env file and adapt the settings to your system.

.env.dist

# Database Credentials
TYPO3_DB_CONNECTIONS_DEFAULT_HOST = "db"
TYPO3_DB_CONNECTIONS_DEFAULT_PORT = 3306
TYPO3_DB_CONNECTIONS_DEFAULT_USER = "db"
TYPO3_DB_CONNECTIONS_DEFAULT_PASS = "db"
TYPO3_DB_CONNECTIONS_DEFAULT_NAME = "db"

# Graphics
TYPO3_GFX_PROCESSOR = "ImageMagick"
TYPO3_GFX_PROCESSOR_PATH = "/usr/bin/"
TYPO3_GFX_PROCESSOR_PATH_LZW = "/usr/bin/"

# Mail
TYPO3_MAIL_TRANSPORT = "smtp"
TYPO3_MAIL_TRANSPORT_SMTP_SERVER = "localhost:1025"

# System
TYPO3_TRUSTED_HOST_PATTERN = "introduction.ddev.site"

# Site
SITE_INTRODUCTION_BASE = "https://introduction.ddev.site/"

About

Introduction Package Development Environment on #DDEV


Languages

Language:PHP 100.0%