How to use Newspaper in a staging production environment

Posted in: Newspaper
Post count: 10

Hi there,

we are using your theme in a closed intranet with a staging and production site. We are experiencing issues when moving from staging to production with the paths stored in the theme panel (e.g. logo URL). Can you please advise how to accomplish that these URLs are changed like all others when doing a search and replace on the database?

Thanks!

Post count: 35449

Hello,

You can try to import/export the theme panel settings, you can check more details about this option in our documentation from here -> https://forum.tagdiv.com/import-export-theme-settings/

Also you can use a plugin for migrate, in this way you should wave no problems to move the staging website on live website.

Thank you!

Post count: 10

Hi there,

thanks for your reply.

Actually, this doesn’t help – the theme settings can be exported/imported, yes. But the hardcoded url for i.e. the logo stay the same this way. How are these values stored in the database? We need to access them directly via a search and replace script.

Using a plugin is not an option, since the migration has to be automated. However, even with a plugin the above mentioned url would stay the same.

Thanks and best regards.

Post count: 35449

Hello,

Please provide me some examples about this problem, some screenshots/video with the settings that you made on staging site and how will show on product website.

Thank you for your understanding!

Post count: 10

Hi,

screenshots/videos aren’t possible (NDA) but they aren’t necessary, either – it’s pretty simple:

We have a staging site where all work (coding, configuration, content creation,…) is done. On a frequent basis this staging site gets migrated to the production environment with a simple file and folder copy and a database move – the database runs through a search and replace script where everything related to the staging url is replaced with the production url.

Everything is replaced correctly except the settings from the theme panel, e.g.:

– Custom font files: set in the theme panel (http://staging.tld/wp-content/uploads/2019/09/mycustomwebfont.woff)
– Logo: set under LOGO UPLOAD in the theme panel (http://staging.tld/wp-content/uploads/myCustomLogo.jpg)

All the urls that are set in the theme options panel aren’t replaced (with https://production.tld/…) in the database search and replace step. So, once again, the question: where are these urls stored in the database and why aren’t they replaced?

Exporting and importing the theme options is not an option as there is no backend access on production site at all. There has to be another way to replace these urls like all the other WordPress urls in the database.

Looking forward to your reply!

Post count: 35449

Hello,

Yes, the logos url that is set in theme panel is saved in theme panel -> http://prntscr.com/pbmz39 -> http://prntscr.com/pbmzbl -> http://prntscr.com/pbn2bn

Hope this will help you!
Thank you!

Post count: 10

Hi,

thank you for the explanation. So, apart from the logo – everything from the theme options panel is saved in this table?

EDIT: and, another thing that just came to my mind: would it be possible to use relative urls in the theme panel by manually editing them in the panel?

Regards

  • This reply was modified 6 years by nM.
Post count: 35449

Hello,

Yes, you can use external links for the images/logo -> http://prntscr.com/pbqvk1

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.