Commit 396cceaa authored by Tobias Munk's avatar Tobias Munk

various tutorial drafts

parent b4504b99
# Filesystems
As an ephemeral container, a *phd5* application usually does not store files directly.
It requires one or more storage backends, which are used for permanent file storage.
Example for storing database dumps on S3.
yii db/export && \
yii fs/sync runtime://mysql s3:// --interactive=0 && \
yii fs/rmdir runtime://mysql --recursive --interactive=0
# Image proxy
TBD
## docker-compose.yml
> @since 5.1.0-rc2
{{ image(image_url, ‚x200‘) }}
https://github.com/willnorris/imageproxy#examples
----
/img/{{ app.settings.get('imgBaseUrl', 'app.frontend') }}/1600x,q60/{{ app.settings.get('imgHostPrefix', 'app.frontend') }}{{ imageSource }}{{ app.settings.get('imgHostSuffix', 'app.frontend') }}
# Opensearchserver integration
TBD
https://github.com/dmstr/yii2-opensearch-module
```
opensearchserver:
image: alexandretoyer/opensearchserver
ports:
- 9090
volumes:
- "/host-volume/opensearchserver-dmstr/srv:/srv"
environment:
- MEMORY=2g
```
......@@ -25,6 +25,25 @@ Full width header and container
----
#### Scrolling
{# Scrolling #}
{% set scrolling %}
$(document).on('click', 'a[href^="#"]', function(event){
event.preventDefault();
$('html, body').animate({
scrollTop: $( $.attr(this, 'href').replace('/de/','') ).offset().top
}, 500);
});
{% endset %}
{{ this.registerJs(scrolling) }}
----
----
Templates
----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment