-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP][FEATURE] webdevops/clitools: initial clisync.yml example
Add default LOCAL.mysql.dockercompose setting for docker-compose supported webdevops/clitools versions. Set common GLOBAL.rsync.workdir value. Add my common rsync exclude's which aren't part of the official webdevops clisync.yml file in different places of the file. Assume that the local dev environment is a macOS system und set file system specific utf8 stuff therefore in GLOBAL.rsync.opts. Add common environments with some useful defaults and finalize commands for users using iTerm.app. Set global sync excludes. !!! Take care until the merging of exclude(/directory) does not work as expected within webdevops/clitools. Some excludes aren't working as expected. ToDo's - Finalize after webdevops/clitools#60 is fixed - Document rsync workarounds - Add more useful finalize commands after deploy/sync as comment to clisync.yml - take care of the share configuration - Add docu how to do a initial deployment (db, assets) Related: #120
- Loading branch information
Josef Glatz
committed
Jun 26, 2017
1 parent
9e3f66e
commit d498b61
Showing
2 changed files
with
206 additions
and
25 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...nf/ext/theme/Resources/Private/Examples/CliTools/Examples_deploy.ENV.command.finalize.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
deploy: | ||
environmentname: | ||
command: | ||
finalize: | ||
- { type: 'remote', command: 'TYPO3_CONTEXT=Production/Dev php_cli ~/html/typo3/typo3cms database:updateschema "*.add,*.change"' } | ||
- { type: 'remote', command: 'TYPO3_CONTEXT=Production/Dev php_cli ~/html/typo3/typo3cms cache:flush --force' } | ||
- { type: 'remote', command: 'TYPO3_CONTEXT=Production/Dev php_cli ~/html/typo3/typo3cms install:fixfolderstructure' } | ||
- { type: 'remote', command: 'rm -rf ~/html/typo3/web/typo3conf/realurl_autoconf.php || true' } | ||
|
||
- { type: 'remote', command: 'echo "php_flag log_errors on" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "php_value error_log /usr/home/user/php_errors.log" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "SetEnv IN2PUBLISH_CONTEXT Local" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "SetEnv TYPO3_CONTEXT Production/Staging/Backendserver" >> ~/public_html/web/.htaccess' } | ||
|
||
- { type: 'remote', command: 'echo "# -restrict access-" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "AuthUserFile /usr/www/users/user/web/.htpasswd" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "AuthName Staging" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "AuthType Basic" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "require valid-user" >> ~/public_html/web/.htaccess' } | ||
- { type: 'remote', command: 'echo "sampleusername:\$1\$.Ie4vDX0\$kla234JFse2fsdfo87j623gd" > ~/public_html/web/.htpasswd' } | ||
|
||
- { type: 'remote', command: 'echo "Header set X-Robots-Tag \"noindex, nofollow, noarchive\"" >> ~/typo3/web/.htaccess' } |
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