Skip to content

Instantly share code, notes, and snippets.

@tfeuerst
Forked from helhum/deploy-to-target-info.md
Created June 14, 2016 11:30
Show Gist options
  • Save tfeuerst/d56dfe5de24bf527e5674cac6e5bcfe7 to your computer and use it in GitHub Desktop.
Save tfeuerst/d56dfe5de24bf527e5674cac6e5bcfe7 to your computer and use it in GitHub Desktop.
TYPO3 setup steps

Requirements for deployment

  • ssh (generate key and put on server)
  • make sure rsync is available on both servers

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"Inititial commit after kickstart"
composer install
./typo3cms install:setup
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 staging-system:deploy/shared/.env
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