Staging site in sub directory of Live site
-
Great plug-in. I have one issue that I haven’t been able to solve.
I installed Revisr on my main live site at https://www.[mysite].com. The .git folder installed at the root of that install and I pushed the files to my bitbucket account.
I also have a staging site at stage.[mysite].com. On my hosting account all subdomains and other sites have to be installed in the same public_html directory. So my directory looks like this:public_html contains: .git, wp-admin, wp-content, wp-includes, wp-snapshot, stage, [other website]
stage and [other website] also each contain wp-installs
In my main site I included the stage/ and [other website]/ directories in the ignore list. I then went to the stage site and installed the revisr plugin thinking it would create a .git repository in the stage folder but all it did was read the .git in the public_html directory and read all the settings I set up on my live site. <p>
Is there a way to be able to pull files from bitbucket to the staging site that where pushed from the live site. And vice versa?? Do I have to manually create (somehow) a repository in the staging site? Or is this setup not going to work? <p>
Would a solution be to have all my sites, including the main site, in sub-directories within public_html?
- The topic ‘Staging site in sub directory of Live site’ is closed to new replies.