The goal is to have single site (subdomain.domain.dev) with single locale(en_gb) in it and with one craft installation shared with this site only.
I'm not sure if I configured general.php and db.php correctly to get subdomain.domain.dev loaded.
Production steps of What I did:
Set up host to point to subdomain - subdomain.craft.dev
Folders structure:
craft
craft.dev
subdomain.craft.dev
Created database - subdomain_dev
Uploaded necessary files to subdomain folder and edited one line of code
// Tell Craft to serve the subdomain content define('CRAFT_LOCALE', 'subdomain');
Uploaded en_gb templates to ../craft/templates/en_gb.
I'm not sure, If I also should edit
$craftPath
to point to templates files for en_gb locale.Edited general.php
// All environments '*' => array(), // Development environment - Locale 'craft.dev' => array( 'devMode' => true, 'siteUrl' => array( 'en' => 'http://craft.dev', 'en_gb' => 'http://subdomain.craft.dev' ) ) );
Edited db.php
// All environments '*' => array( 'tablePrefix' => 'craft', ), // Development environment - Locale 'craft.dev' => array( 'server' => 'localhost', 'user' => 'root', 'password' => '********', 'database' => 'craft_dev', ), // Development environment - Locale 'subdomain.craft.dev' => array( 'server' => 'localhost', 'user' => 'root', 'password' => '********', 'database' => 'subdomain_dev', )
Locale en_gb was also created from back-end.
When I load the http://subdomain.craft.dev, I get Twig_Error_Runtime saying, that variable
doesn't exist.It's like templates in ../craft/templates/en_gb wasn't found?
domain.com
, you should be able to copy the license file over to thesubdomain.domain.com
install.