94 lines
1.4 KiB
Markdown
94 lines
1.4 KiB
Markdown
# `askar-association-ps.org`
|
|
|
|
### The structure
|
|
|
|
The website will be a Wordpress with some customization. It will have the following structure
|
|
|
|
* About Us
|
|
- Who We Are
|
|
- Mission and Vision
|
|
- Our Values
|
|
- Strategic Objectives and Theory of Change
|
|
- Ethical Charter
|
|
- Partners
|
|
|
|
* Our Work
|
|
- Main Units
|
|
- Projects
|
|
- Programs
|
|
- Services
|
|
|
|
* Media Center
|
|
- News
|
|
- Gallery
|
|
- Visuals
|
|
|
|
* Achieve
|
|
|
|
* Donate
|
|
|
|
* Get Involved
|
|
|
|
* Contact Us
|
|
|
|
## Dev
|
|
|
|
We use GNU make + docker
|
|
|
|
Set the environment variables as appropriate
|
|
|
|
```
|
|
export REMOTE_WEB_HOST=root@amelia.abbiamoundominio.org
|
|
export REMOTE_WEB_ROOT=/var/www/askar
|
|
export REMOTE_DB_HOST=root@comandantaramona.abbiamoundominio.org
|
|
export REMOTE_DB_USER=wordpress_askar
|
|
export REMOTE_DB_DATABASE=wordpress_askar
|
|
export PUBLIC_URL=https://askar-association-ps.org
|
|
```
|
|
|
|
### Pull content from production site
|
|
|
|
Pull the content (uploads+plugins)
|
|
|
|
```
|
|
make pull-website
|
|
```
|
|
|
|
Dump the remote db and pull it
|
|
|
|
```
|
|
make pull-db
|
|
```
|
|
|
|
### Push to production
|
|
|
|
Prepare the local content to be pushed (note that the following requires the dev site to be running with `make dev-run`):
|
|
|
|
```
|
|
make prepare
|
|
```
|
|
|
|
Stop the remote website
|
|
|
|
```
|
|
ssh ${REMOTE_WEB_HOST} docker stop wordpress_askar
|
|
```
|
|
|
|
Push the database
|
|
|
|
```
|
|
make push-db
|
|
```
|
|
|
|
Push the website content
|
|
|
|
```
|
|
make push-website
|
|
```
|
|
|
|
Restart the website
|
|
|
|
```
|
|
ssh ${REMOTE_WEB_HOST} ./ wordpress_askar.sh
|
|
```
|