-
Set
ENVIRONMENT
todevelopment
. Copyenv-sample.php
toenv.php
. Inenv.php
, changedefine('ENVIRONMENT', 'production');
todefine('ENVIRONMENT', 'development');
. NEVER COMMITenv.php
. -
Copy folder
application/config/dev_template
toapplication/config/development
. Set up all config files in folderapplication/config/development
. Set value of variables marked /* SETUP */ according to their instruction. Folderapplication/config/development
and any file inside it MUST NEVER BE COMMITED or every developer will hate you :) . -
Copy
blog/wp-config-sample.php
toblog/wp-config.php
. Set value of variables inside the file (just like when you installing Wordpress). NEVER COMMIT thewp-config.php
file.
-
Set
ENVIRONMENT
toproduction
. Copyenv-sample.php
toenv.php
. Inenv.php
, make sure the code isdefine('ENVIRONMENT', 'production');
. -
Copy folder
application/config/dev_template
toapplication/config/production
. Set up all config files in folderapplication/config/production
. Set value of variables marked /* SETUP */ according to their instruction. Folderapplication/config/production
and any file inside it MUST NEVER BE COMMITED. -
Copy
blog/wp-config-sample.php
toblog/wp-config.php
. Set value of variables inside the file (just like when you installing Wordpress). NEVER COMMIT thewp-config.php
file. -
Code is ready to be deployed to production server (usually via FTP).