Some basic stuff for working with Contao 4
Enter SSH server
ssh -p 22 -t username@your-domain "cd public_html/www; exec \$SHELL -l"
replace: 22
with port number,
username@your-domain
with your credentials
and: public_html/www
with path to your contao installation
(add -vvv
to log output)
SSH on localhost (XAMPP default SSL port is 443
)
ssh -p 443 root@127.0.0.1
SSH on local virtual host (contao-demo
)
ssh -p 443 root@contao-demo
composer.phar
default
php composer.phar update
watch output in terminal -vvv
php composer.phar update -vvv
unlimited memory memory_limit=-1
php -d memory_limit=-1 composer.phar update
all together
php -d memory_limit=-1 composer.phar update -vvv
composer.phar
php composer.phar clearcache
development cache
vendor/bin/contao-console cache:clear --env=dev
production cache
vendor/bin/contao-console cache:clear --env=prod