Please follow the steps below to get your environment ready for the “Building an AMP Compatible WordPress Site” workshop at WordCamp Sevilla. By doing that in advance, you can get the most out of the workshop, since it will allow you to directly follow along on your own computer. Plus, you will have the environment also for later explorations based on what you’ve learned.
The steps below describe everything you need to do in detail, but if you like, there is also a visual slide deck you can look at in addition.
- Install Local by Flywheel
Download Local by Flywheel and install it on your machine.
- Set up a new site
Start Local by Flywheel, and create a new site by clicking on the small + icon in the lower left corner. You can give your site any name you like, and ignore all the other configuration options. For username and password, you can choose something insecure without issues, e.g.
adminandpassword. When prompted to enter your machine credentials after creating the site, please do so. - Trust the site’s SSL certificate
Go to the SSL tab and click the Trust button to trust the SSL certificate for your site. Again, you may need to enter your machine credentials.
- Download and prepare the setup script
Download this ZIP file and extract it to your site’s
/appdirectory. By default, this should be~/Local Sites/YOUR-SITENAME/appon Mac OS. After extracting the ZIP file, you should end up with awc-sevilla-setupdirectory inside your site’s/appdirectory.
(Optional: If you are familiar withgitand have it installed on your machine, it’s recommended that you clone the theme used for development during the workshop directly from your machine. When in your site’s/appdirectory, rungit clone git@github.com:felixarntz/wc-sevilla.git public/wp-content/themes/wc-sevilla-devto do that.) - SSH into your site’s container
Back in Local by Flywheel, right-click on your site name in the list on the left, and click Open Site SSH in the context menu. A console should open.
- Run the setup script
Run the setup script from the ZIP file by entering the following command:
bash ./app/wc-sevilla-setup/script.sh
– This will take a couple minutes, based on your network connection.
– Early on during script execution, you will be prompted to configuregitfor the site with your name and email address.
– If you see some warnings or errors during script execution, don’t worry, it should be fine in the end. Also don’t worry if the script seems to be stuck at a certain point – some of the processes take fairly long.
– In the end, you should see a line starting withAll done! You can access your WordPress dashboard at.... - That’s it!
Just remember to bring your computer along to the workshop! 🙂
Looking forward to seeing you at WordCamp for Developers Sevilla!