Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Setze die Server- und Datenbank-Details
REMOTE_HOST="remote_server"
LIVE_DB_HOST="localhost"
LIVE_DB_USER="live_user"
LIVE_DB_PASS="live_password"
LIVE_DB_NAME="live_database"
STAGING_DB_HOST="localhost"
# Definieren eines Ankers für gemeinsame Konfigurationen
.deploy_template: &deploy_template
stage: deploy
image: php:8.3-cli
before_script:
# Installieren notwendiger Tools und Abhängigkeiten
- apt-get update && apt-get install -y git unzip libzip-dev libicu-dev libonig-dev rsync openssh-client
# Installieren und Aktivieren von PHP-Erweiterungen
- docker-php-ext-install mbstring intl zip
# Installieren von Composer
hosts:
production:
hostname: 'IP'
remote_user: 'USERNAME'
port: 22
deploy_path: '/home/www/projekt/production'
staging:
hostname: 'IP'
remote_user: 'USERNAME'
@wowaTYPO3
wowaTYPO3 / renovate.json
Created February 13, 2025 20:41
renovate.json
{
"extends": [
"config:recommended",
":disableMajorUpdates"
],
"enabledManagers": [
"composer"
],
"packageRules": [
{
@wowaTYPO3
wowaTYPO3 / renovate.json
Created January 13, 2025 10:15
renovate.json
{
"extends": [
"config:recommended",
":disableMajorUpdates"
],
"enabledManagers": [
"composer"
],
"packageRules": [
{
@wowaTYPO3
wowaTYPO3 / deploy.php
Created January 13, 2025 10:13
deploy.php
<?php
declare(strict_types=1);
namespace Deployer;
// Include base recipes
require 'recipe/common.php';
require 'contrib/cachetool.php';
require 'contrib/rsync.php';
@wowaTYPO3
wowaTYPO3 / deploy.yml
Created January 13, 2025 10:12
.github/workflows/deploy.yml
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="EXT:vt12/Resources/Private/Language/locallang.xlf" date="2023-05-09T20:22:32Z" product-name="vt12">
<header/>
<body>
<trans-unit id="vt12.logoAlt" resname="vt12.logoAlt">
<source>Alt-Text: Alternative text for the logo, important for accessibility</source>
</trans-unit>
</body>
</file>
@wowaTYPO3
wowaTYPO3 / config.yaml
Last active March 2, 2023 06:38
How to integrate the imap module for PHP in DDEV projects.
name: newsletter
type: php
docroot: public
php_version: "7.4"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<nav id="menu">
<header class="major">
<h2>
<f:translate key="LLL:EXT:vt11/Resources/Private/Language/locallang.xlf:menu" />
</h2>
</header>
<ul>
<f:for each="{mainMenu}" as="item">