We are always looking at new ways to help our Partners and with this in mind we recently conducted our first technical webinar with Matthew Freeman from Wildbit.
If you read "Using Git to Simplify Shopify Theme Deployment" then you’ll be familiar with the concept of Git and how it can be used to keep versions of all your theme files. It can also play a part in helping developers move their code from place to place — a process known as deployment.
We thought it would be a good idea to delve a little deeper and learn how all the pieces join together in a development workflow. In this 26 minute live webinar, Matthew talks us through how to use Beanstalk and Deploybot (both of which have free starter plans) to not only keep track of your code changes but also how to deploy theme files to development and live stores.
Q & A
We had a number of questions about development workflows on the chat during the webinar — we’ve collated them and Matthew has kindly answered them below.
Q: Can we view the store in Beanstalk before deploying?
A: There isn't a way to preview changes before deploying as you need to push the theme files to the Shopify platform for them to take effect. This is one of the reasons we suggest using a development store.
Q: Can you stage and push only theme changes, or also content changes?
A: Theme changes are the only things that can be deployed right now as all content is handled from within the Shopify store itself.
Q: What happens in the case where there is a Liquid syntax error?
A: We will cancel the deployment, and display the error so you can see which file is causing the error.
Q: Can different branches be deployed to different stores?
A: Yes - branches can be named anything (master, dev, my-super-duper-branch) and you choose which branch pushes to which store.
Q: Is there a way to connect to a different code editor?
A: You can use any code editor you wish locally and then commit your changes to your Git repository in the usual way. Alternatively you can use the built-in editor in Beanstalk.
Q: How do i get Beanstalk as I don't see it in the app store?
A: Beanstalk isn't a downloadable application, it is a web service. You can sign up for a Beanstalk account here.
Q: I am using Deploybot currently, but find it challenging to manage changes made in Shopify Theme editor — specifically, the settings.json file. What is the best way to deal with changes to settings made through the online Theme editor?
A: There isn't a way to do this in DeployBot right now, but we have added it to our feature request list.
Q: Is there a way to exclude files like the settings file?
A: You can exclude files or paths in the Beanstalk or DeployBot server settings page.
Let us know what you would like to see next in our series of technical webinars in the comments below.