Skip to content

fosterinteractive/docker-mainspring-php-pl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lando

Lando is a quick and easy way to spin up a local development environment.

This git repo contains docker images to get lando to build our Mainspring/Pattern Lab build. There are two Dokerfiles one which runs on an apache server and one which runs on a nginx server.

Apache Lando

In the /apache directory is the Dockerfile to build a server using apache and php which will include node to allow us to build pattern lab.

An example apache lando build can be found in examples/apache

Nginx Lando

Currently not able to use BrowserSync on this build as mapping of ports is not working.

Basic Lando Build

To get Lando running with BrowserSync you can init a new .lando.yml file in your root project folder or copy an example file. Then running this command will start the service

lando start

If you used the apache example the you can start BrowserSync.

# Change into the themes directory
cd /web/themes/mainspring

# Run gulp
lando gulp

This will give you a connection to BrowserSync

[Browsersync] Access URLs:
 ----------------------------------------------------------
       Local: http://localhost:3000/pattern-lab/public/
    External: http://192.168.128.4:3000/pattern-lab/public/
 ----------------------------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.128.4:3001
 ----------------------------------------------------------

You can use either the Local or External urls to access the Lando app. If you want to use the External url just make sure you use your computers IP address as the one displayed from Lando will be for its server.

About

Docker image to include php and node to build patter lab

Resources

Stars

Watchers

Forks

Packages

No packages published