This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run containers | |
docker-compose up -d mysql [apache|nginx] | |
# exec bash (php commands) | |
docker-compose exec --user=www-data php-fpm bash | |
# consoles | |
php vendor/bin/typo3cms | |
# or | |
php vendor/bin/typo3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollectionInfos({ type: "collection" }).forEach(function(coll) { | |
db[coll.name].getIndexes().forEach(function(index) { | |
if ("_id_" !== index.name) { | |
print("db." + coll.name + ".createIndex(" + tojson(index.key) + ", "+tojson({name:index.name})+");"); | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings.authorsPage> | |
<TCEforms> | |
<label>Page auteurs</label> | |
<config> | |
<type>group</type> | |
<internal_type>db</internal_type> | |
<allowed>pages</allowed> | |
<size>1</size> | |
<maxitems>1</maxitems> | |
<minitems>0</minitems> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONSOLE=php app/console | |
COMPOSER=php -d "apc.enable_cli=0" ../composer.phar | |
PHPUNIT=php bin/phpunit | |
init: git-clone install | |
install: git-subup composer-install cache-clear assets db cache-clear | |
update: git-update git-subup composer-install db-update cache-clear composer-optimize test-unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* GitLab Web Hook | |
* See https://gitlab.com/kpobococ/gitlab-webhook | |
* | |
* This script should be placed within the web root of your desired deploy | |
* location. The GitLab repository should then be configured to call it for the | |
* "Push events" trigger via the Web Hooks settings page. | |
* | |
* Each time this script is called, it executes a hook shell script and logs all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# Webfonts | |
# ---------------------------------------------------------------------- | |
# allow access from all domains for webfonts | |
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version-patch: | |
$(eval version := $(shell php app/console app:version:bump --patch=1)) | |
$(SUDO) git add app/config/version.yml | |
$(SUDO) git commit -m "[RELEASE] version $(version)" | |
version-feature: | |
$(eval version := $(shell php app/console app:version:bump --minor=1)) | |
$(SUDO) git add app/config/version.yml | |
$(SUDO) git commit -m "[RELEASE] version $(version)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | | |
while read path_key path | |
do | |
url_key=$(echo $path_key | sed 's/\.path/.url/') | |
url=$(git config -f .gitmodules --get "$url_key") | |
git submodule add $url $path |