Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setting up a Project
- In terminal, Make a new directory:
- mkdir ~/Sites
- Add a web folder:
- mkdir example.com && cd example.com
- Clone Trellis:
- git clone --depth=1 https://github.com/roots/trellis.git && rm -rf trellis/.git
- Clone Bedrock:
- git clone --depth=1 https://github.com/roots/bedrock.git site && rm -rf site/.git
- Install Sage:
- composer create-project roots/sage site/web/app/themes/sage
- Local Setup
- Go to the root directory (up one folder):
- cd ..
- Add Roots Example Project:
- git clone https://github.com/roots/roots-example-project.com.git
- Install the components:
- cd roots-example-project.com/site/web/app/themes/sage
- composer install
- yarn && yarn build
- cd ../../../../..
- cd trellis
- vagrant up
- Test the WP install roots-example-project.test
- To shut down the server: vagrant halt
- Setting up Staging / Production servers will have to be in another post.
Advertisement
Add Comment
Please, Sign In to add comment