{"id":19456868,"url":"https://github.com/porter-dev/craftcms","last_synced_at":"2026-03-19T09:59:29.957Z","repository":{"id":104822844,"uuid":"377287248","full_name":"porter-dev/craftcms","owner":"porter-dev","description":"Boilerplate repository for developing and deploying Craft CMS on Kubernetes via Porter.","archived":false,"fork":false,"pushed_at":"2021-06-16T15:57:09.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T01:52:33.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Twig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/porter-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-15T20:34:24.000Z","updated_at":"2022-05-31T22:08:41.000Z","dependencies_parsed_at":"2023-05-30T08:00:32.961Z","dependency_job_id":null,"html_url":"https://github.com/porter-dev/craftcms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/porter-dev/craftcms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fcraftcms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fcraftcms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fcraftcms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fcraftcms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/porter-dev","download_url":"https://codeload.github.com/porter-dev/craftcms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/porter-dev%2Fcraftcms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29954583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T17:18:47.792Z","updated_at":"2026-02-28T23:02:29.177Z","avatar_url":"https://github.com/porter-dev.png","language":"Twig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy Craft CMS with Porter\nThis is a quickstart repository you can fork to develop and deploy Craft CMS on Kubernetes on AWS/GCP/DO with Porter.\n\n# Quick Deploy\n\n## Deploying PostgreSQL Database (OPTIONAL) \nThis quickstart guide connects Craft CMS to a PostgreSQL database deployed on Porter. You can connect Craft CMS instances deployed on Porter to any external databases, but Porter lets you deploy a PostgreSQL instance in just one click. If you want to connect to a database that's deployed via Porter, please follow [this guide](https://docs.getporter.dev/docs/postgresdb). To seed the deployed database with existing data, you can use Porter's [Remote Execution feature](https://docs.getporter.dev/docs/cli-documentation#remote-execution) to run `psql` commands inside the deployed database.\n\n## Create Environment Group\nTo allow users to easily reuse the same set of environment variables across deployments, Porter supports **Environment Groups**. In this guide, we will be deploying two services for Craft CMS that use the same set of environment variables - we recommend you to store these as an environment group for convenience.\n1. Navigate to the [Environment Group tab](https://dashboard.getporter.dev/env-groups). Create a new environment group by loading in from a file or manually inputting the variables.\n2. Ensure that all environment variables outlined below are included. Your `DATABASE` environment variables must match the config of the database you are trying to connect to. If you're trying to connect to a database on Porter, [see this guide for more details.](https://docs.getporter.dev/docs/postgresdb#connecting-to-the-database) \n```\nNODE_ENV=production\nAPP_ID=\nSECURITY_KEY=\nDATABASE_HOST=\nDATABASE_PORT=5432\nDATABASE_NAME=\nDATABASE_USERNAME=\nDATABASE_PASSWORD=\n```\n\n## Deploying Craft CMS\n1. Create an account on [Porter](https://dashboard.getporter.dev).\n2. [One-click provision a Kubernetes cluster](https://docs.getporter.dev/docs/getting-started-with-porter-on-aws) in a cloud provider of your choice, or [connect an existing cluster](https://docs.getporter.dev/docs/cli-documentation#connecting-to-an-existing-cluster) if you already have a cluster.\n3. Fork this repository.\n4. We will launch two separate services: `web` and `console`. From the [Launch tab](https://dashboard.getporter.dev/launch), navigate to **Web Service \u003e Deploy from Git Repository**. Select the forked repository and `web.Dockerfile` from the root directory. Click **Continue**.\n5. Configure the port to `8080`, load in the environment variables from the Environment Group you created in the previous section, then hit deploy.\n6. Next we will deploy a `console` service. Navigate to **Worker \u003e Deploy from Git Repository** from the [launch tab](https://dashboard.getporter.dev/launch). Select the forked repository and `console.Dockerfile` from the root directory. Load in the same set of environment variables as those used for `web` service, then hit deploy.\n7. Porter will now automatically handle CI/CD for your Craft CMS deployments whenever you push to the forked repository.\n\n# Development \u0026 Propagating Changes\nTo develop, clone this repository to your local environment and run `docker-compose -f docker-compose.yml up --build` from the root directory.\nTo propagate your changes to the production environment, you need to run `php craft migrate/all` and `php craft project-config/apply` in one of your deployed services. You can do this via Porter's [Remote Execution feature](https://docs.getporter.dev/docs/cli-documentation#remote-execution). This feature works in a similar way as `ssh` and allows you to run commands inside a deployment.\nAfter you've successfully deployed your changes, you can run these commands to propagate your changes.\n```\nporter run [DEPLOYMENT_NAME] -- php craft migrate/all\nporter run [DEPLOYMENT_NAME] -- php craft project-config/apply\n```\nAlternatively, if you want to open up an interactive shell instance in the deployment to run other commands, run:\n```\nporter run [DEPLOYMENT_NAME] -- sh\n```\n\n# Questions?\nJoin the [Porter Discord community](https://discord.gg/FaaFjb6DXA) if you have any questions. For contributions/suggestions to docs, please open an issue in our [open source repository](https://github.com/porter-dev/porter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fporter-dev%2Fcraftcms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fporter-dev%2Fcraftcms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fporter-dev%2Fcraftcms/lists"}