Commit 9629f6c7 authored by Benni Mack's avatar Benni Mack

Merge branch 'ochorocho-update-readme-dev-setup' into 'main'

Add details about development setup + Create Generic Package of Dump

See merge request !39
parents 90328d45 4e41249f
Pipeline #10385 passed with stages
in 11 minutes and 25 seconds
......@@ -127,13 +127,16 @@ Get dump for Content Master:
<<: *prepare-ssh
image: composer:2.0.8
when: manual
variables:
GITLAB_RELEASE_VERSION: "1.0.0"
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/"
stage: maintenance
script:
- mkdir dump
- ssh demo-content@demo01.typo3server.ch "php ./content.demo.typo3.org/current/bin/typo3cms database:export -c Default -e 'cache_*' -e '[bf]e_sessions' -e 'be_users' -e 'sys_log' -e 'sys_history' -e 'sys_refindex' | gzip -9 -c" > ./dump/dump.sql.gz
- rsync -avz --exclude='_processed_' demo-content@demo01.typo3server.ch:~/content.demo.typo3.org/shared/web/fileadmin/ ./dump/fileadmin
artifacts:
name: demo-content-master-dump
paths:
- ./dump/
expire_in: 1h
- zip -r demo-data.zip dump
- |
curl --request DELETE --header "JOB-TOKEN: ${CI_JOB_TOKEN}" ${PACKAGE_REGISTRY_URL}/1
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ./demo-data.zip ${PACKAGE_REGISTRY_URL}/generic/site/${GITLAB_RELEASE_VERSION}/demo-data.zip
......@@ -15,6 +15,24 @@ As soon as one backend user signs in to the TYPO3 Backend, a counter is shown bo
and on the TYPO3 Backend that within 30 minutes, the TYPO3 installation will be re-set
to the current state.
## Local Development
Requirements:
* DDEV, see [Get Started with DDEV](https://www.ddev.com/get-started/)
To set up the TYPO3 Demo Project for local development
1. Download code `git clone ssh://git@gitlab.typo3.org:2222/services/demo.typo3.org/site.git`
2. Install composer packages `ddev composer install`
3. Download database/fileadmin: Go to the [Generic Packages](https://gitlab.typo3.org/services/demo.typo3.org/site/-/packages) section in Gitlab, select the "site"-Package and download the latest "demo-data.zip"
4. Extract the downloaded file
5. Copy the `fileadmin` folder to `<document root>web/fileadmin`
6. Import database: `ddev import-db --src=/path/to/database/dump.sql.gz`
7. Update schema: `ddev exec bin/typo3cms database:updateschema`
8. Create a backend user `ddev exec bin/typo3cms backend:createadmin username password`
9. Start the project running `ddev start`
## License
All code is licensed under GPL2+. All content and graphical creations are licensed under
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment