isaacadams

Installing Roots Trellis / Bedrock / Sage

May 2nd, 2019
2,311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Setting up a Project
  2. In terminal, Make a new directory:
  3. mkdir ~/Sites
  4.  
  5. Add a web folder:
  6. mkdir example.com && cd example.com
  7.  
  8. Clone Trellis:
  9. git clone --depth=1 https://github.com/roots/trellis.git && rm -rf trellis/.git
  10.  
  11. Clone Bedrock:
  12. git clone --depth=1 https://github.com/roots/bedrock.git site && rm -rf site/.git
  13.  
  14. Install Sage:
  15. composer create-project roots/sage site/web/app/themes/sage
  16.  
  17. Local Setup
  18. Go to the root directory (up one folder):
  19. cd ..
  20.  
  21. Add Roots Example Project:
  22. git clone https://github.com/roots/roots-example-project.com.git
  23.  
  24. Install the components:
  25.  
  26. cd roots-example-project.com/site/web/app/themes/sage
  27. composer install
  28. yarn && yarn build
  29. cd ../../../../..
  30. cd trellis
  31. vagrant up
  32.  
  33. Test the WP install roots-example-project.test
  34.  
  35. To shut down the server: vagrant halt
  36.  
  37. Setting up Staging / Production servers will have to be in another post.
Advertisement
Add Comment
Please, Sign In to add comment