Download the PHP package threespot/example-wordpress-composer without Composer
On this page you can find all versions of the php package threespot/example-wordpress-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package example-wordpress-composer
fixme-project-name
Note: Badges are auto-generated when creating a new WP site on Pantheon via Terminus. You can copy the Markdown from CircleCI in Project Settings -> Status Badges.
Outline
- Pantheon Environments
- Local Development
- Prerequisites
- Installation
- Boot WordPress Application
- Boot Theme (Webpack) Server
- Pull Files and Database from Pantheon
- Deploying
- Deployment Using Terminus
- Test Environment
- Live Environment
- Troubleshooting
Pantheon Environments
- Live - https://live-fixme-app-name.pantheonsite.io
- Test - https://test-fixme-app-name.pantheonsite.io
- Dev - https://dev-fixme-app-name.pantheonsite.io
Local Development
In order to more easily recreate the production environment locally, Lando is used for local development. We also use Pantheon’s CLI, Terminus, to sync files and databases.
- PHP Server - https://fixme-app-name.lndo.site/
- Webpack Server - https://localhost:3000
Prerequisites
Install all the required local dependencies:
- Git Version Control
- Docker
- Lando v3.0.6 (Windows, macOS)
- Terminus 2.3.0, Pantheon’s CLI tool
- Composer
- Node 10.21.0 Note: The sage theme dependencies do not support version of Node greater than 10. We recommend asdf for managing multiple versions of Node
- Yarn (Windows, macOS)
You'll also need write access to this repo and be a member of the Pantheon Project.
Installation
- Clone the repo
$ git clone https://github.com/Threespot/fixme-app-name.git
- Install application composer dependencies
$ composer install
- Install theme dependencies
- Navigate to the theme directory
$ cd web/wp-content/themes/fixme-app-name
- Install composer dependencies
$ composer install
- Install Node dependencies
$ yarn install
- Navigate to the theme directory
Boot WordPress Application
After all dependencies are installed, navigate to the project root directory and run:
If this is the first time running this command, Lando will build the necessary Docker containers.
To stop the server run:
Other Lando CLI command can be read here in the Lando docs
Boot Theme Server (Webpack)
Making CSS or JS updates requires running Webpack to recompile and inject the CSS and JS.
-
Navigate to the theme folder
$ cd /web/wp-content/themes/sage
-
Install npm dependencies using Yarn
$ yarn install
-
Start Webpack
$ yarn start
- You should now be able to view the site locally at https://localhost:3000
- To stop the server, press Control + C
Pull Files and Database from Pantheon
Lando is used to pull uploads and data from Pantheon. See docs here.
Deploying
Code committed to the remote master
branch is automatically deployed to the dev
environment on Pantheon. After a local branch is pushed, CircleCI will build and deploy the files to Pantheon’s dev environment. You can tell CircleCI to not run by adding [skip ci]
to the commit message.
Code that exists on dev
can be promoted to the test
environment, and test
can be promoted to the live
environment. For more details about the application lifecycle, see https://pantheon.io/agencies/development-workflow/dev-test-live-workflow.
Feature branches with a corresponding pull request will create a multi-dev environment used for testing individual features. See https://pantheon.io/docs/multidev for documentation.
Deployment Using Terminus
Test Environment
Code will be promoted from dev
to test
NOTE: this composer script will also purge Pantheon's cache.
or
Live Environment
Code will be promoted from test
to live
or
All versions of example-wordpress-composer with dependencies
composer/installers Version ^1.3.0
pantheon-systems/quicksilver-pushback Version ^2
pantheon-systems/wordpress-composer Version *
roots/wp-password-bcrypt Version ^1.0.0
vlucas/phpdotenv Version ^3.1.0
wpackagist-plugin/lh-hsts Version ^1.24
wpackagist-plugin/pantheon-advanced-page-cache Version >=0.3.0
wpackagist-plugin/wp-native-php-sessions Version >=0.6.9
wpackagist-theme/twentynineteen Version ^1.2