Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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');
@simonschaufi

This comment has been minimized.

Copy link

@simonschaufi simonschaufi commented Sep 15, 2016

When I follow these steps, surf is not installed. Is this step missing?

I still had to do:

mkdir -p Build/Surf
cd Build/Surf
composer require typo3/surf:dev-master
cd ../../
ln -s Build/Surf/vendor/bin/surf surf
@helhum

This comment has been minimized.

Copy link
Owner Author

@helhum helhum commented Nov 24, 2016

When I follow these steps, surf is not installed

sure, because I use the downloaded surf phar and do not install it with the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.