This template provides a basic Wiki.js set-up. It comes pre-configured to use PostgreSQL. It is intended for you to use as a starting point and modify for your own needs. Please note that by default the deployed Wiki.js instance will be public.
- Node.js 16
- PostgreSQL 13
- Wiki.js 2.5.x
- Automatic TLS certificates
The software is currently not built from source code, but is installed from a release package. The configuration file is dynamically generated based on Platform.sh environment variables.
This template adopts source operations. There is one such operation defined, namely core-update
. This can be executed from platform checkout of your project, as follows
platform source-operation:run core-update
(or you use the -p
and -e
switches if you are running the command from outside the checkout of the project)
It's also set up to run every day at midnight:
crons:
update:
# Run the 'update' source operation every day at midnight.
spec: '0 0 * * *'
cmd: |
set -e
if [ "$PLATFORM_BRANCH" = "master" ]; then
platform source-operation:run core-update --no-wait --yes
fi
Important: for the above cron job to work, you must set the PLATFORMSH_CLI_TOKEN
environment variable to a valid Platform.sh token, e.g.
platform variable:create -e master --level environment --name env:PLATFORMSH_CLI_TOKEN --sensitive true --inheritable false --visible-build false --value '<YOUR_API_TOKEN>'
Lando vastly simplifies local development and DevOps, and it is Platform.sh’s recommended local development tool, as Lando now includes direct support for Platform.sh projects.
This template already includes a .lando.upstream.yml
with some default configurations. All you need to do is to follow the Quick Start as per Platform.sh's own documentation. But in short, once you have Lando installed, you should be able to do (from the checkout of your Platform.sh project):
lando init --source cwd --recipe platformsh # follow the instruction on screen
lando start
and you'll have a container-based development environment that reflects the Platform.sh deployment, including all build and deploy steps.