Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and phpstorm and github

(This post was last modified: 10-24-2021, 05:24 PM by John_Betong.)

> I use phpstorm and have a need to maintain both a production site and a staging site

I have tried numerous ways to maintain different application versions and currently use the following on my Ubuntu VPS:

1. have a mirror image of LOCALHOST and ONLINE application versions
2. use Command line RSYNC to update online version, which only takes seconds
3. set and test for “LOCALHOST” which is a bool constant in index.php. This constant is available throughout the project and used to maybe ”if(LOCALHOST) {“ require videos, adverts, etc
4. use GitHub Command line “Git add .”, update and Git push for backups
5. the local MySQL database is for my local testing benefit and online database dynamically updated
6. online database manually downloaded to local backups and sometimes used locally
7. I’ve setup completely separate staging sites using subdomains and also used “freenom.com” free domains.
8. The completed staging site directory is copied to a version-123 directory, etc

Messages In This Thread
Codeigniter and phpstorm and github - by richb201 - 10-23-2021, 09:25 AM
RE: Codeigniter and phpstorm and github - by John_Betong - 10-24-2021, 05:17 PM

Theme © iAndrew 2016 - Forum software by © MyBB