Sharepicgenerator with Docker and Webpack.
Clone this repo with
git clone ...
Create docker-compose.yml from docker-compose.yml.sample
Install npm dependencies with
docker-compose run node sh -c 'npm install'
Install npm dependencies in dist within node-container `cd dist && npm install``
Install composer dependencies with
docker-compose run webserver sh -c 'cd dist && composer install'
Bring up the project with
docker-compose up -d
create and edit ini/config.ini
Create empty log.db-file or rsync it from live
Install WordPress via browser#
define('COOKIEPATH','/')and db-credentials in wp-config.php
make compileto compile css and js. (Do this after very branch-checkout, or invoke file-watcher by editing a sass- or js-file)
There is also a Makefile. You can use
make up and
Bring up the project (see above) and head to http://127.0.0.1:9000. The portnumber is defined in the .env-File.
Every code goes here.
This directory is to be deployed.
All font-files are linked into to webserver-container, so that inkscape can use them. Handle webfonts in code/dist/fonts independently from that.
assets and fonts
Pictures, logos, webfonts, etc. can be stored here
assets/css and assets/js
Compiled files. Use build-directory to change code.
Uploaded files are here as well as the sharepic. Files are deleted regularly.
Templates go here. Opposite to /tmp, directory will not be emtied automatically.
Add new font
- ttf-file should go to fonts-folder
- create woff2 with
woff2_compress <font.ttf>and move it to assets/fonts
- add font-face in fonts.scss
- upload font to server to /usr/share/fonts
- edit font at https://www.glyphrstudio.com/
Create a new tenant automatically
create section in config.ini for new tenanant
update config.ini on server
To create or update the downloads-table for logging, log in as Admin-User and download a sharepic with all the features or the new feature respectivly.