Some basic stuff for working with Contao 4
add code to <contao root path>/composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/jodermo/petzka-demo-bundle.git"
}
],
"require": {
"petzka/demo-bundle": "dev-master"
},
"config": {
"preferred-install": {
"petzka/*": "source",
"*": "dist"
}
},
}
dev-
as long as there is no stable release, e.g:"petzka/demo-bundle": "dev-master"
add code to <contao root path>/composer.json
{
"...": "...",
"repositories": [
{
"type": "path",
"url": "repositories/petzka-demo-bundle"
}
],
"require": {
"...": "...",
"petzka/demo-bundle": "dev-master"
},
"config": {
"preferred-install": {
"petzka/*": "source",
"*": "dist"
}
},
}
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
php composer.phar update
Type URL <your domain>/contao-manager.phar.php
in your Browser and enter login credentials to launch Contao Manager
You should see the hint that there is a new package
You should see your new package listed
That should take a while
go to Contao backend