You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,7 @@ Core files, plugins, and all. The best (and cleanest) way to do this is to sit y
80
80
.gitignore
81
81
Capfile
82
82
dev.config.php
83
+
prod.config.php
83
84
Gemfile
84
85
Gemfile.lock
85
86
index.php
@@ -91,15 +92,17 @@ Your uploads directory should be git ignored as you don't want to version contro
91
92
92
93
Great, now you're almost ready for rendering your WordPress website.
93
94
94
-
First we need a database. Create or clone your local database and configure your `dev.config.php` with your settings.
95
+
First we need a database. Create or clone your local database, then copy `dev.config.php` to `config.php` and edit with your settings.
95
96
96
-
`dev.config.php` will be only used on your local environment and won't we deploy to your server folder. We already mentioned that inside the `.gitignore` file for you :sunglasses:
97
+
`dev.config.php` and `prod.config.php` are only guidelines for you to create your `config.php` files on all your environment. Make sure to remove these 2 files before committing to your Git repository.
98
+
99
+
`config.php` should only be used on your local environment and you should have another `config.php` with your server configuration inside your `linked_files` folder, but that is better explained in the `Server side` section of this file. For now just make sure not to deploy your `config.php` file. We already mentioned that inside the `.gitignore` file for you :sunglasses:
97
100
98
101
Inside `wp-config.php` we already set some constants to a default value like `DB_CHARSET`, `DB_COLLATE` and `WPLANG`. Feel free to edit this file with your custom settings.
99
102
In the same file, there is a section called `Custom Directory`, here we tell WordPress our new file structure.
100
-
We also try to include a`config.php`. This will contain your server database configuration and will be stored inside your server `shared` folder from where Capistrano will create a symlink inside your project folder so you don't need to do it manually.
103
+
We also need to require the`config.php`. This will contain your environment database configuration. On your server side, this will be stored inside your server `shared` folder from where Capistrano will be able to create a symbolic link inside your project folder so you don't need to do it manually.
101
104
102
-
Now, if you have correctly configured your database and your `dev.config.php` you should be able to run your local environment using some PHP and MySQL tool like MAMP.
105
+
Now, if you have correctly configured your database and your `config.php` you should be able to run your local environment using some PHP and MySQL tool like MAMP.
103
106
104
107
#### Be careful
105
108
@@ -154,6 +157,11 @@ The code and the documentation are released under the [MIT License](http://sonny
154
157
155
158
## Changelog
156
159
160
+
### 0.1.2
161
+
* config.php strategy changed to only use a config.php on all the environment instead of dev and prod.config.php
0 commit comments