- Lando (includes Docker): https://docs.lando.dev/basics/installation.html(https://docs.lando.dev/basics/installation.html)
- Clone this repository:
git clone https://github.com/slipnox/lando-press.git
. - Navigate to the root directory Ex:
cd lando-press
. - Before start the project you should edit
./config/.lando.yml
and./config/.env
accordingly to your needs. - In the root folder run:
lando start
, this will build the lando app. - You can run now
lando install-wp
to download and install wordpress. - Perform
lando restart
, this step is important to resync mounted folders. - Optionally if you want to install sage theme run
lando install-sage
, this will install and activate roots sage starter theme.
Lando will generate the required services: Nginx Server with PHP 7.4, Node, MySQL, Redis, MailHug and phpMyAdmin.
- https://localhost:xxxxx
- http://localhost:xxxxx
- http://wpproject.lndo.site
- https://wpproject.lndo.site
NOTE: xxxxx stands for random ports.
You can now enter in your browser http://wpproject.lndo.site
- You can take advantage of the configured
wpackagist
in the main composer to add plugin dependencies. Ex:composer require wpackagist-plugin/better-search-replace
- You can user node commands using
lando yarn
.
The sage installation wiill install all needed dependencies in the theme folder you can run:
lando yarn start
: start sage browsersync watcher development modelando yarn bluid
: compile theme build assetslando yarn bluid:production
: compile theme production assets
Structure:
Location | Usage |
---|---|
./app | sync mounted folders inside wp-content themes , plugins |
./config | configuration files |
- Ask the tech lead or PM for a database backup.
- You can import it:
lando db-import db_backup.sql.gz
or use the provided phpMyAdmin.