/avoinsorsa-gatsby-wordpress

A Gatsby static site using free WordPress on Heroku as headless CMS

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Avoinsorsa.fi Gatsby/WordPress

A Gatsby static site using free WordPress on Heroku as headless CMS

Local Development

Install Docker

Install Node.js

Install AWS-CLI

Install Heroku-CLI

Clone this repo and source set up your environment inside the project root.

cp .env.sample .env
source .env

I also recommend installing autoenv, so you don't have to run the source command all the time.

npm install

Start a shell inside Docker. It might take a moment for the images to download and build. This is normal.

npm run shell

Now you can run composer install inside Docker

composer install && exit

Outside the docker shell, you can now start development

npm run dev

You can now navigate to http://localhost:8080/wp-admin to start working with your local WordPress installation.

Or view the gatsby site at http://localhost:8000