Matomo Analytics

Documentation

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 co...

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.

Dennis Smink

Written by Dennis Smink

Dennis brings over 13 years of hands-on experience in server management, specializing in optimizing web services for scalability and security.

Ready to dive in?
Start your free trial today.

Create an account and enjoy your 5-day free trial — no credit card required.

Start your free trial