diff options
| Commit | 4751e021fd0f8bd6cb71945af8f4e9cf41acbed3 (patch) | |
|---|---|---|
| Author | 2020-07-08 22:24:05 +0300 | |
| Committer | 2020-07-08 22:24:05 +0300 | |
| Files | 6dac2882e3b359450c7b36dec8c523c82b09c91f /README.md | |
| tues-interns-2020-feature/tos-pp.tar tues-interns-2020-feature/tos-pp.tar.gz tues-interns-2020-feature/tos-pp.zip | ||
| Parent | a2a785a17d4cdeee856685a6e0792d272c9338ef (diff) | |
| Parent | d806454c3a25475c0e365e17a7d3bc7cad633df8 (diff) | |
[Update] Synced with master feature/tos-pp
1 files changed, 18 insertions, 0 deletions
| -rw-r--r-- | README.md | 18 |
@@ -32,3 +32,21 @@ ServerName local.carmag.com 13. Edit `wp-config.php.` Make sure to have `WP_DEBUG` constant set to true! 14. You should be all set now! + +## Deployment steps +In the root directory, there is a `deploy.php` file with some basic commands. You can execute a deployment, pulling the latest master by visiting `url/deploy.php`. + +If you want to deploy to our staging, you can open [https://carmag.dxdemos.online/deploy.php](https://carmag.dxdemos.online/deploy.php). + +## Pulling the latest staging database +We have created a small PHP script `db-dump.php`. When you open `url/db-dump.php` and enter the following username and password `dxinterns/dxinterns1`, we'll run a quick PHP script, generating the latest database and you'll be able to download a SQL file. + +Keep in mind this is going to dump the database from the staging, which has different URL, in our case [https://carmag.dxdemos.online/](https://carmag.dxdemos.online/). +When you import the database, you'll need to update two rows: +`wp_options.home` and `wp_options.siteurl`. + +The eaiest approach would be to add this on your `wp-config.php` file: +``` +define( 'WP_HOME', 'http://local.carmag.com/' ); +define( 'WP_SITEURL', 'http://local.carmag.com/' ); +``` |
