RP "Staging" Website
The staging website, found at staging.reformedperspective.ca is protected by a password using the .htacccess file. This site is the testing/staging site, mainly for changes to the PHP code for the main website. Changes made here are 'pushed' to GitHub and then 'pulled' to the main site.
Staging Workflow
Here is the workflow for working on the PHP code of the rp.ca website:
- ssh into the rp.ca Dreamhost server.
- Make changes to the code files inside the benchpress folder inside the
staging.reformedperspective.ca
folder. commit
the changes andpush
them to GitHub- When the changes are ready to go live, go to the
reformedperspective.ca
folder on the server andpull
the changes from GitHub.
It's important to note that only the benchpress folder is tracked by git. Everything else, with only a few exceptions, is excluded by the .gitignore
file for the git repository. Things like images, plugins, Wordpress files, and especially the MySQL database are not synched between the staging and main sites and will need to be synched in another way.