Skip to content

Instantly share code, notes, and snippets.

@smichaelsen
Last active March 9, 2016 13:29
Show Gist options
  • Save smichaelsen/842a26d3d6a70106f182 to your computer and use it in GitHub Desktop.
Save smichaelsen/842a26d3d6a70106f182 to your computer and use it in GitHub Desktop.
TYPO3 Deployment File (jweiland.net specific)
# Add Home directory to path so that you can have executables there.
export PATH=~:$PATH
# Fine, now do the following:
# Put a PHP shortcut into your home directory: ln -s /usr/local/bin/php5.6.2-cli php
# Download composer and rename the composer.phar to composer in your home directory
git reset --hard
git pull
composer install
php typo3/cli_dispatch.phpsh extbase databaseapi:databasecompare 1,2,3,4,5,6,7,8
php typo3/cli_dispatch.phpsh extbase migration:migratesqlfiles
php typo3/cli_dispatch.phpsh extbase language:update
php typo3/cli_dispatch.phpsh extbase cacheapi:clearallcaches
rm -rf typo3temp/Cache/*
rm index.php && cp typo3_src/index.php .
@peterkraume
Copy link

To make things easier with these long paths to the php binary I've created a symlink to my preferred php version in the root directory of my webspace:
ln -s /usr/local/bin/php5.6.2-cli php

Then I've added the above mentioned path to the PATH variable:
export PATH=/kunden/xxxxx_yyyyy/:$PATH
This is done via .zshr/.bashrc to have my php version available every time I login.

For composer I've added an alias to .zshrc/.bashrc:
alias composer="/usr/local/bin/php5-56LATEST-CLI /kunden/xxxxx_yyyyy/composer.phar"

@smichaelsen
Copy link
Author

Thanks @peterkraume! I updated the gist.

@martinhummer
Copy link

additionally, i had to set permissions for composer:
chmod 700 composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment