Skip to content

Instantly share code, notes, and snippets.

@t3easy
Forked from helhum/deploy-to-target-info.md
Created March 2, 2017 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t3easy/c7337bf3508c5d796e2130b08ae8b5ea to your computer and use it in GitHub Desktop.
Save t3easy/c7337bf3508c5d796e2130b08ae8b5ea to your computer and use it in GitHub Desktop.
TYPO3 setup steps

Requirements for deployment

  • ssh (generate key and put on server)
  • rsync must be available on both machines (deployment host and target host)
  • PHP cli binary must be available on both machines (deployment host and target host)
  • composer must be available on deployment host

Needed info for each target system:

  • deploy directory
  • repository URL
  • database name
  • database host
  • database user
  • database user password
git clone https://github.com/helhum/TYPO3-Distribution.git new-project
cd new-project
rm -rf .git && git init && git add . && git commit -m "Initial commit after kickstart"
composer install
./typo3cms install:setup
./typo3cms configuration:remove DB
git add . && git commit -m "After Install"
cp .env-example .env
mv .surf/projectid-dev.php .surf/t3cvie-dev.php
ssh staging-system 'mkdir -p deploy/shared && cd deploy/shared && pwd'
scp .env-example target-system:deploy/shared/.env
# Edit .env on target system accordingly
git add . && git commit -m'Deployment config'
# Additional surf task for initial setup on target host
#
# $workflow->defineTask('Helhum\\TYPO3\\Distribution\\DefinedTask\\DeployInit', 'TYPO3\\Surf\\Task\\ShellTask', array(
# 'command' => array(
# "cd {releasePath}",
# "/usr/local/bin/php5-56LATEST-CLI ./typo3cms install:setup --non-interactive --database-user-name=\"db123\" --database-user-password=\"password\" --database-host-name=\"127.0.0.1\" --database-port=\"3306\" --database-create=0 --database-name=\"db123\" --admin-user-name=\"admin\" --admin-password=\"password\" --site-setup-type=createsite --site-name=\"TYPO3 Camp Vienna\"",
# )
# ));
#
# $workflow->afterStage('update', 'Helhum\\TYPO3\\Distribution\\DefinedTask\\DeployInit');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment