Skip to content

City-of-Helsinki/spouse-program

Repository files navigation

Spouse program

Spouse program website using Composer, Docker, Stonehenge and deployed to Wodby.

Environments

Env Branch URL
development * https://spouse.docker.sh/
testing development http://spouse-test.druid.fi
production master http://spouseprogram.fi

Requirements

You need to have these applications installed to operate on all environments:

Create and start the environment

For the first time:

$ make fresh

Import / export database

Docker container has wp-cli installed.

To export or import database after the environment has been set up:

  1. Get latest version of the database and set it in the same folder with the wordpress installation. You can get a database dump from Wodby
  2. Go inside docker container: make shell.
  3. Inside the container, go to the root of wordpress installation
  4. Use the wp-cli to import or export database: wp db import db-dump.sql
  5. Use "wp search-replace" "old.env.url.fi" "spouse.docker.sh" or whatever the local address is.

Login page: https://spouse.docker.sh/wp-admin

Ready! Now go to https://spouse.docker.sh to see your site.

Developing spouse theme

To compile sass go the theme folder and run:

gulp watch