How do I deploy staging to production?

So now the time has come to deploy staging, to production. There are a few things to consider about before doing this.

The first thing you have to consider is what files you do not want to be moved over. For example, if you have a folder where uploads are stored, then you probably do not want it to be synced over to production (as the uploads could differentiate).

The second thing is the configuration file to connect to your database, and other variables. It would be wise to add these to the exclusion list so these will be skipped upon deploying to production. You can add exclusion files to the "Production" tab inside the staging site.

Next, once you're all set to deploy to production you can head over to the staging site and visit the "Production" tab, on the right hand side you will see a button "Deploy to production" which will deploy to the production site.

26 February 2020
456 views