Failed to deploy from local to interim version

I am setting up a development environment for a project. So it already has a live site and a staging site. I also want to add a local development environment so that I can first check changes I make locally on the staging site and then push them to the live site. But now I just crashed the staging site. My process is to push the repo from the live site to gitlab and from gitlab to my local machine. I made a change to test this, pushing locally to gitlab and then pulling the changes from the staging site. But now the staging site is no longer accessible. This makes sense because it overwrites the wp-config.php file with entries from the live site (i.e. database information). But I don't actually see an inability to connect to the database. Just a blank site. So this doesn't seem to be the right direction. Any help on how I can do this?

Comments

Add comment
  • Comment list is empty

Contact Us

020-2206-9892

QQ咨询:1025174874

E-mail: info@361sale.com

Working hours: Monday to Friday, 9:30-18:30, holidays off

Customer Service
In order to facilitate global user registration and login, we have canceled the telephone login function. If you encounter login problems, please contact our customer service for assistance in binding your email address.