{"id":20389308,"url":"https://github.com/positiondev/position-trellis","last_synced_at":"2025-03-04T23:44:43.808Z","repository":{"id":142264407,"uuid":"75884693","full_name":"positiondev/position-trellis","owner":"positiondev","description":"Position \"fork\" of trellis","archived":false,"fork":false,"pushed_at":"2016-12-30T14:15:54.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-15T10:02:31.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/positiondev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2016-12-07T23:36:52.000Z","updated_at":"2016-12-07T23:47:46.000Z","dependencies_parsed_at":"2024-05-08T05:32:25.037Z","dependency_job_id":null,"html_url":"https://github.com/positiondev/position-trellis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fposition-trellis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fposition-trellis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fposition-trellis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/positiondev%2Fposition-trellis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/positiondev","download_url":"https://codeload.github.com/positiondev/position-trellis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241940539,"owners_count":20045878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-15T03:17:17.878Z","updated_at":"2025-03-04T23:44:43.796Z","avatar_url":"https://github.com/positiondev.png","language":"Python","readme":"# Trellis\n[![Release](https://img.shields.io/github/release/roots/trellis.svg?style=flat-square)](https://github.com/roots/trellis/releases)\n[![Build Status](https://img.shields.io/travis/roots/trellis.svg?style=flat-square)](https://travis-ci.org/roots/trellis)\n\nAnsible playbooks for setting up a LEMP stack for WordPress.\n\n- Local development environment with Vagrant\n- High-performance production servers\n- One-command deploys for your [Bedrock](https://roots.io/bedrock/)-based WordPress sites\n\n## What's included\n\nTrellis will configure a server with the following and more:\n\n* Ubuntu 16.04 Xenial LTS\n* Nginx (with optional FastCGI micro-caching)\n* PHP 7.0\n* MariaDB (a drop-in MySQL replacement)\n* SSL support (scores an A+ on the [Qualys SSL Labs Test](https://www.ssllabs.com/ssltest/))\n* Let's Encrypt integration for free SSL certificates\n* HTTP/2 support (requires SSL)\n* Composer\n* WP-CLI\n* sSMTP (mail delivery)\n* MailHog\n* Memcached\n* Fail2ban\n* ferm\n\n## Requirements\n\nMake sure all dependencies have been installed before moving on:\n\n* [Ansible](http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-pip) \u003e= 2.0.2 (except 2.1.0)\n* [Virtualbox](https://www.virtualbox.org/wiki/Downloads) \u003e= 4.3.10\n* [Vagrant](https://www.vagrantup.com/downloads.html) \u003e= 1.8.5\n* [vagrant-bindfs](https://github.com/gael-ian/vagrant-bindfs#installation) \u003e= 0.3.1 (Windows users may skip this)\n* [vagrant-hostmanager](https://github.com/smdahlen/vagrant-hostmanager#installation)\n\n## Installation\n\nThe recommended directory structure for a Trellis project looks like:\n\n```shell\nexample.com/      # → Root folder for the project\n├── trellis/      # → Your clone of this repository\n└── site/         # → A Bedrock-based WordPress site\n    └── web/\n        ├── app/  # → WordPress content directory (themes, plugins, etc.)\n        └── wp/   # → WordPress core (don't touch!)\n```\n\nSee a complete working example in the [roots-example-project.com repo](https://github.com/roots/roots-example-project.com).\n\n1. Create a new project directory: `$ mkdir example.com \u0026\u0026 cd example.com`\n2. Clone Trellis: `$ git clone --depth=1 git@github.com:positiondev/position-trellis.git trellis \u0026\u0026 rm -rf trellis/.git`\n3. Clone Bedrock: `$ git clone --depth=1 git@github.com:positiondev/tni-bedrock.git site \u0026\u0026 rm -rf site/.git`\n4. Install the Ansible Galaxy roles: `$ cd trellis \u0026\u0026 ansible-galaxy install -r requirements.yml`\n\nWindows user? [Read the Windows docs](https://roots.io/trellis/docs/windows/) for slightly different installation instructions. VirtualBox is known to have poor performance in Windows — use VMware or [see some possible solutions](https://discourse.roots.io/t/virtualbox-performance-in-windows/3932).\n\n## Documentation\n\nTrellis documentation is available at [https://roots.io/trellis/docs/](https://roots.io/trellis/docs/).\n\n## Local development setup\n\n1. Configure your WordPress sites in `group_vars/development/wordpress_sites.yml` and in `group_vars/development/vault.yml`\n2. Run `vagrant up`\n\n[Read the local development docs](https://roots.io/trellis/docs/local-development-setup/) for more information.\n\n## Remote server setup (staging/production)\n\nA base Ubuntu 16.04 server is required for setting up remote servers. OS X users must have [passlib](http://pythonhosted.org/passlib/install.html#installation-instructions) installed.\n\n1. Configure your WordPress sites in `group_vars/\u003cenvironment\u003e/wordpress_sites.yml` and in `group_vars/\u003cenvironment\u003e/vault.yml` (see the [Vault docs](https://roots.io/trellis/docs/vault/) for how to encrypt files containing passwords)\n2. Add your server IP/hostnames to `hosts/\u003cenvironment\u003e`\n3. Specify public SSH keys for `users` in `group_vars/all/users.yml` (see the [SSH Keys docs](https://roots.io/trellis/docs/ssh-keys/))\n4. Run `ansible-playbook server.yml -e env=\u003cenvironment\u003e` to provision the server\n\n[Read the remote server docs](https://roots.io/trellis/docs/remote-server-setup/) for more information.\n\n## Deploying to remote servers\n\n1. Add the `repo` (Git URL) of your Bedrock WordPress project in the corresponding `group_vars/\u003cenvironment\u003e/wordpress_sites.yml` file\n2. Set the `branch` you want to deploy\n3. Run `./bin/deploy.sh \u003cenvironment\u003e \u003csite name\u003e`\n4. To rollback a deploy, run `ansible-playbook rollback.yml -e \"site=\u003csite name\u003e env=\u003cenvironment\u003e\"`\n\n[Read the deploys docs](https://roots.io/trellis/docs/deploys/) for more information.\n\n## Contributing\n\nContributions are welcome from everyone. We have [contributing guidelines](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md) to help you get started.\n\n## Community\n\nKeep track of development and community news.\n\n* Participate on the [Roots Discourse](https://discourse.roots.io/)\n* Follow [@rootswp on Twitter](https://twitter.com/rootswp)\n* Read and subscribe to the [Roots Blog](https://roots.io/blog/)\n* Subscribe to the [Roots Newsletter](https://roots.io/subscribe/)\n* Listen to the [Roots Radio podcast](https://roots.io/podcast/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpositiondev%2Fposition-trellis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpositiondev%2Fposition-trellis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpositiondev%2Fposition-trellis/lists"}