{"id":2387,"date":"2020-01-30T13:59:09","date_gmt":"2020-01-30T12:59:09","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=2186"},"modified":"2020-01-30T13:59:09","modified_gmt":"2020-01-30T12:59:09","slug":"kreiranje-staging-wordpress-sajta","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/kreiranje-staging-wordpress-sajta\/","title":{"rendered":"Creating a Staging WordPress site"},"content":{"rendered":"<h2 class=\"wp-block-heading\">What is Staging?<\/h2>\n\n\n\n<p>What is Staging? Site staging is when you clone your existing site and work on it independently of the main functional site, say changing the theme or adding new functionality without wanting to think about whether it will break the site. In the Staging version of the site, you can change everything in the same way as on the classic site. That&#039;s it <em>It&#039;s actually site cloning.<\/em> This allows you to make changes and not worry about whether something works or the site doesn&#039;t open at the moment and the like, and risk visitors seeing these irregularities.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How does it work?<\/h3>\n\n\n\n<p>Staging is built into our autoinstaller and you can use it for any scripts you install with it. When you have wordpress installed using the auto installer on the page where all the installations are you will get something similar to this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/01\/stagestart-1024x455.png\" alt=\"\" class=\"wp-image-2187\" title=\"\"><\/figure>\n\n\n\n<p>The red arrow tells you where to click to get to the page where all the installations you installed using the auto installer are, the orange box is our example installation for the purposes of this tutorial.<\/p>\n\n\n\n<p>The blue arrow and blue box is the option we are looking for and that is Staging. When you place the mouse there, it will say &quot;Create Staging&quot;. By clicking on that button, you get a new window like the picture below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/01\/stage2-1024x604.png\" alt=\"\" class=\"wp-image-2188\" title=\"\"><\/figure>\n\n\n\n<p>Here, framed in purple, we enter the folder in which our Staging installation will be located, i.e. the cloned site.<\/p>\n\n\n\n<p><em>Note that it is possible to set up a staging site on a subdomain as well. Before this, create a subdomain and then in the &quot;Choose domain&quot; option, select the subdomain and leave blank what we have framed.<\/em><\/p>\n\n\n\n<p>Now we click Create Staging.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/01\/staging3-1024x283.png\" alt=\"\" class=\"wp-image-2189\" title=\"\"><\/figure>\n\n\n\n<p>As you can see you got an admin link and a site link that looks exactly the same as the original site.<\/p>\n\n\n\n<p>Now you can make changes to that Staging site and when you&#039;re done let&#039;s go back to the auto installer of all installations (first image).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/01\/staging4-1024x421.png\" alt=\"\" class=\"wp-image-2190\" title=\"\"><\/figure>\n\n\n\n<p>Now you see two installations first, which is the main one and the second one which is the staging and which has the excess icon as marked in the picture. That icon allows us to put everything we&#039;ve done on the site on the main site.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/01\/staging5-1024x549.png\" alt=\"\" class=\"wp-image-2191\" title=\"\"><\/figure>\n\n\n\n<p>We click on &quot;Customize&quot; and we will see more options where we have the option to set the whole base or the parts that have been modified. Here you can see that the data in the table has been changed because we have added a plugin that is not in the main version in order to test this change.<\/p>\n\n\n\n<p>When we click on Push to Live, we will get a window that looks like the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/01\/stage6.png\" alt=\"\" class=\"wp-image-2193\" title=\"\"><\/figure>\n\n\n\n<p>After it is done, a successful installation message will be displayed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2020\/01\/stage7-1024x287.png\" alt=\"\" class=\"wp-image-2194\" title=\"\"><\/figure>\n\n\n\n<p>That&#039;s all over.<\/p>\n\n\n\n<p>Staging can also be done using a plugin or by manually copying all the files to a new folder and duplicating the database, and after the replacement is completed on the main site, that&#039;s all.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u0160ta je Staging? Staging sajta je kada klonirate svoj postoje\u0107i sajt i radite na njemu nezavisno na glavni funkcionalni sajt, recimo promena teme ili dodavanje novih funkcionalnosti bez da \u017eelite da razmi\u0161ljate da li \u0107e to da poremeti sajt. U Staging verziji sajta mo\u017eete da menjate sve isto kao i na klasi\u010dnom sajtu. To je [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2195,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[19],"tags":[],"class_list":["post-2387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=2387"}],"version-history":[{"count":0,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2387\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=2387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=2387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=2387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}