wordpress/README.md
2020-05-03 12:39:32 +02:00

33 lines
1.2 KiB
Markdown

# wordpress
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/wordpress/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/wordpress)
> https://wordpress.org
> https://wp.swarm.autonomic.zone
## Development
```bash
$ git clone https://git.autonomic.zone/autonomic-cooperative/wordpress && cd wordpress
$ python3 -m venv .venv && source .venv/bin/activate
$ pip install -r requirements.txt
$ docker-compose up
```
Then visit the new Wordpress site.
> http://localhost:8010
On the first run, you'll have to wait some seconds for the database to
initialise before running through the initial installation. We don't make use
of something like [wait-for-it](https://github.com/vishnubob/wait-for-it)
because the `depends_on` stanza makes Docker swarm wait for it to come up on
the production deploy. So, we can just avoid doing this altogether for the
development workflow to save ourselves work.
## Production
1. Our [drone.autonomic.zone](https://drone.autonomic.zone/autonomic-cooperative/wordpress/) configuration automatically deploys.
1. For a manual deploy guide, see [this documentation](https://git.autonomic.zone/autonomic-cooperative/organising/wiki/working-with-docker-swarm).