Skip to content

An amazee.io demo of Craft CMS running locally with Pygmy and deployed to Lagoon

Notifications You must be signed in to change notification settings

amazeeio-demos/demo-craft-simple

Repository files navigation

Craft CMS running locally using Pygym and deployed to amazee.io Lagoon

Run locally

Prerequistes

We assume you have Pygmy running locally - see https://github.com/pygmystack/pygmy

Build and run locally

  • Ensure Pygmy is running (pygmy up)
  • git clone [email protected]:amazeeio-demos/demo-craft-simple.git
  • cp .env.local.example .env.local
  • docker-compose build
  • docker-compose run cli bash

In the container running BASH

  • composer install

Exit the container

  • exit (to log out of the container)

Start up the containers locally

  • docker-compose up

Jump back into the container running BASH

  • docker-compose run cli bash

To setup a new DB and Craft (run in the container)

  • ./craft install (if this is a new installation, not copying an existing DB or something)

To copy the DB and files from the demo project in lagoon (run in the container)

  • lagoon-sync sync mariadb -e main
  • lagoon-sync sync files -e main

Exit the container

  • exit

Locally now

Deploy to Lagoon

Demo project lives at https://dashboard.amazeeio.cloud/projects/demo-craft-simple

The production URL is: https://nginx.main.demo-craft-simple.us2.amazee.io/

About

An amazee.io demo of Craft CMS running locally with Pygmy and deployed to Lagoon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published