File: /datos/www/www.colombia.co/public_html/README.md
# colombia.co
## To use this repo:
### Requirements
[ Node.js ](https://nodejs.org/) and npm (included in Node installation).
### Run project from console
1. Do a fresh Wordpress installation in the project folder.
2. Import database and do all necesary URL replacements, edit your wp-config.php to connect with your database.
3. You may need to add these lines to your wp-config.php:
```
$super_admins = array('colombia','admin_colombia_co','csosa','aotalora'); // Here should go all superadmin usernames
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'dev.colombia.co'); // In production replace this with www.colombia.co
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
```
4. And these to your .htaccess:
```
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Redirect 302 /wp-content/uploads/ http://colombia.co/wp-content/uploads/
```
5. Create a virtual host that serves the project folder with this url: dev.colombia.co
6. Through terminal go to project directory and Install dependencies
>`npm install`
7. Run server and automation tasks:
> `gulp`