This documentation assumes you're developing with a docker/composer setup via git. This is the usual setup at ext.dev.

See migrating a TYPO3 project to composer for further details.

Clone the project from GitLab

First you get the project repository from GitLab:

git clone [email protected]:ext.dev/projectname.git

 

Spin up the docker containers

Make sure you are not using any of the ports (80, 8080) the docker container is going to use and spin up the project's docker containers.

docker-compose up --build

 

Create TYPO3 via composer

If you did not already set the environment up, do so via composer:

docker exec -i projectname_typo3_1 composer install

 

Copy files

Usually all files generated by users and editors reside inside the fileadmin folder. Some TYPO3 installations still have an uploads folder.

Copy these folders here in the file structure

{project_name}
| ...
└─── public
|  └─── fileadmin
|  └─── uploads
| ...

If you want to work without the files just create the folders. There will be a bunch of missing assets in the frontend if you do so, but most projects still mostly work for development purposes.

Initialise mySQL database

Initialize the database docker container with the mysql dump, make sure to define the correct container (replace "projectname") and the correct path to the SQL file.

If you have two files (schema, data) run import the schema first.

docker exec -i projectname_database_1 mysql -utypo3 -ptypo3 typo3 < /path/to/sql/file.sql