updatpe config
This commit is contained in:
parent
22f8b37355
commit
842f797e07
@ -2,8 +2,11 @@ domain: example.org
|
|||||||
cookie_host: .example.org
|
cookie_host: .example.org
|
||||||
admin_email: admin@example.org
|
admin_email: admin@example.org
|
||||||
|
|
||||||
dev_domains:
|
default_project: 'foreignone'
|
||||||
- dev
|
subdomains:
|
||||||
|
dev: foreignone
|
||||||
|
ic: ic
|
||||||
|
icdev: ic
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
host: "127.0.0.1"
|
host: "127.0.0.1"
|
||||||
@ -31,11 +34,10 @@ uploads_path: /uploads
|
|||||||
files_domain: files.example.org
|
files_domain: files.example.org
|
||||||
wiki_root: wiki
|
wiki_root: wiki
|
||||||
|
|
||||||
# deploy config
|
skin_cache_prod_dir: replace_with_path_twig_cache_dir_on_prod
|
||||||
git_repo: git@github.com:example/example_org.git
|
skin_cache_dev_dir: replace_with_path_twig_cache_dir_on_dev
|
||||||
|
|
||||||
# runtime variables
|
git_repo: git@github.com:example/example_org.git
|
||||||
is_dev: false
|
|
||||||
|
|
||||||
book_versions:
|
book_versions:
|
||||||
en: 1
|
en: 1
|
||||||
|
@ -30,7 +30,7 @@ abstract class RequestHandler
|
|||||||
throw new InvalidDomainException('invalid subdomain '.$sub);
|
throw new InvalidDomainException('invalid subdomain '.$sub);
|
||||||
$globalContext->setProject($config['subdomains'][$sub]);
|
$globalContext->setProject($config['subdomains'][$sub]);
|
||||||
} else {
|
} else {
|
||||||
$globalContext->setProject($config['project']);
|
$globalContext->setProject($config['default_project']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!in_array($_SERVER['REQUEST_METHOD'], ['POST', 'GET']))
|
if (!in_array($_SERVER['REQUEST_METHOD'], ['POST', 'GET']))
|
||||||
|
@ -73,7 +73,7 @@ class ForeignOneSkin
|
|||||||
'render_options' => $this->options->getOptions(),
|
'render_options' => $this->options->getOptions(),
|
||||||
'app_config' => [
|
'app_config' => [
|
||||||
'domain' => $config['domain'],
|
'domain' => $config['domain'],
|
||||||
'devMode' => $config['is_dev'],
|
'devMode' => isDev(),
|
||||||
'cookieHost' => $config['cookie_host'],
|
'cookieHost' => $config['cookie_host'],
|
||||||
],
|
],
|
||||||
'body_class' => $body_class,
|
'body_class' => $body_class,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user