https://docs.vmgd.whatworks.com.au/
  • ICT Team
    • Setting up your development environment
      • Install programs
      • Create a development wordpress site in Local
      • Git clone the repo
      • Configure the database connection
      • Pull database from live server
      • Run dev server
      • Push changes to live server
    • Making changes to the website
      • File Structure Overview
      • Creating a New Page Template
      • Content Entry Workflow
      • Deployment
    • VMGD Backend Requirements
      • Functional Requirements
        • Ability to edit website and mobile app content
        • API endpoints + documentation for mobile app
        • GraphQL server that allows the website front-end + mobile app to query all website content
        • Mobile Notification
        • Triggers
      • Non-Functional Requirements
        • Availability
          • Vercel CDN
          • Fastly CDN
          • Fastly Firewall
          • Caching + Firewall Diagram
Powered by GitBook
On this page
  1. ICT Team
  2. Setting up your development environment

Push changes to live server

PreviousRun dev serverNextMaking changes to the website

Last updated 6 months ago

Wordpress + NextJS

Make sure you push changes to the wordpress server before you push to the master branch in the front-end repo, because pushing to the master branch will trigger a deploy on Vercel. If you haven’t synced fields on the wordpress server, it’s likely going to cause the Vercel build to fail. If the build fails, that’s fine, just make sure you sync fields on the wordpress server and then redeploy on Vercel:

Wordpress

Make a backup of the live server through the Updraftplus plugin.

Git commit and push your changes.

SSH into the live server.

Run the following command:

wpd && git pull && restart

At this point you should make any content updates on the live server.

If you made changes to ACF fields in the cms, you’ll need to sync those changes from the json files in /wp-content/themes/whatworks/acf-json. :

On the live server