Go to file
2024-07-31 23:30:29 +02:00
assets refine and document prod flow 2024-07-31 23:30:29 +02:00
.gitignore add prod automation 2024-07-17 22:58:28 +02:00
docker-compose.yml implement import mechanism 2024-07-31 00:34:55 +02:00
Dockerfile init 2024-07-17 22:49:32 +02:00
Makefile refine and document prod flow 2024-07-31 23:30:29 +02:00
NOTES_ON_WORDPRESS.md add notes 2024-07-20 00:23:59 +02:00
README.md refine and document prod flow 2024-07-31 23:30:29 +02:00

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