Update Code and Files for Local Development

Updating Your Theme Code and Local Environment

After all this configuration, to make additional changes you just need to make your code changes, commit those changes locally, push them up to the repo, go to the "Manage Theme Repository" page in SiteFactory, click the "Refresh Themes" button, and possibly clear the cache. Any changes you made locally should now appear on your SiteFarm site.

Now if you make changes to your SiteFarm site on SiteFactory, such as new content, views, media, etc., you will want to update your local with those changes. To do this you will create a backup of your site and export either just the database, or the database and files if you uploaded media.

After downloading and unzipping your backup you will want to place the database into the root of your website/project. Replace the database.sql file with the matching database.sql file from your most recent download.

Database file
Replace this file with one of the exact same name and extension.

Once you have replaced the file, in the command line, navigate to your site/project root and run fin themer/refresh this should update the database using the file you just replaced.

If you have media to add your backup should have come with a files folder located in docroot/sites/default/. So docroot/sites/default/files. Replace the files folder found in your site/project at this same path with the one found in your backup at the matching path.

If you forget the local address of your project you can always run fin up to restart it or to start it up again or fin stop to stop your project as well if you no longer want it running.

From here on out that is your development workflow for your custom subtheme and local environment.